:root {
    color-scheme: dark;
    --background: #000;
    --surface: #111;
    --surface-light: #1a1a1a;
    --text: #fff;
    --muted: #b8b8b8;
    --border: #343434;
    --success: #8df09b;
    --error: #ff8d8d;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% 0, #202020 0, #080808 36%, #000 70%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.portal {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 38px 22px 42px;
}

.brand {
    margin-bottom: 34px;
    text-align: center;
}

.brand-name {
    margin: 0;
    font-size: clamp(34px, 10vw, 54px);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
}

.brand-line {
    width: 72px;
    height: 5px;
    margin: 24px auto 0;
    background: #fff;
}

.portal-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(17, 17, 17, .96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

h1 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.2;
}

.intro {
    margin: 0 0 26px;
    color: var(--muted);
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
}

.optional {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--surface-light);
    color: var(--text);
    font: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .13);
}

.check-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: start;
    margin: 17px 0;
    color: #dedede;
    font-size: 14px;
}

.check-row input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: #fff;
}

.check-row label {
    margin: 0;
    font-weight: 400;
}

a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

button {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #000;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
}

button:hover {
    background: #e6e6e6;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

.message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
}

.message-error {
    border-color: #7d3636;
    background: #2a1111;
    color: var(--error);
}

.message-success {
    border-color: #397842;
    background: #102615;
    color: var(--success);
}

.fine-print {
    margin: 20px 0 0;
    color: #919191;
    font-size: 12px;
    text-align: center;
}

.footer-links {
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.footer-links a {
    margin: 0 7px;
    color: var(--muted);
}

@media (max-width: 420px) {
    .portal {
        padding: 28px 15px 30px;
    }

    .portal-card {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .brand {
        margin-bottom: 27px;
    }
}

/* Previne zoom-ul automat al câmpurilor în iOS Captive Network Assistant. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    font-size: 16px !important;
}

input[type="tel"] {
    width: 100%;
    min-height: 64px;
    padding: 18px 22px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font: inherit;
    font-size: 16px !important;
    line-height: 1.35;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* PPC co-brand logos */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: min(560px, 90vw);
    margin: 0 auto 18px;
}

.brand-logo {
    display: block;
    object-fit: contain;
}

.brand-logo-bm {
    width: min(250px, 50vw);
    height: auto;
}

.brand-logo-ppc {
    width: min(110px, 23vw);
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-row .brand-separator {
    color: #ffffff;
    font-size: clamp(34px, 8vw, 58px);
    line-height: 1;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .logo-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    .brand-logo-bm {
        width: min(210px, 50vw);
    }

    .brand-logo-ppc {
        width: min(82px, 22vw);
    }
}
/* final co-brand logo cards */
.logo-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 auto 18px !important;
    max-width: min(620px, 92vw) !important;
}

.logo-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(150px, 35vw) !important;
    height: 76px !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.logo-card img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.logo-row .brand-separator {
    color: #ffffff !important;
    font-size: clamp(34px, 8vw, 54px) !important;
    line-height: 1 !important;
    opacity: 0.95 !important;
}

@media (max-width: 480px) {
    .logo-row {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .logo-card {
        width: min(132px, 36vw) !important;
        height: 64px !important;
        padding: 5px 8px !important;
    }
}