:root {
    --flypper-blue: #17358f;
    --flypper-blue-dark: #0e2774;
    --flypper-cyan: #16ace4;
    --text: #111d38;
    --muted: #6f7b91;
    --border: #d9e1ec;
    --white: #ffffff;
    --success: #0d9770;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

button,
input {
    font-family: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    background: #fff;
}

/* Painel azul - inspirado diretamente no layout de referência */
.auth-banner {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
    color: #fff;
    background:
        radial-gradient(circle at 95% 6%, rgba(255,255,255,.10) 0 170px, transparent 171px),
        radial-gradient(circle at 4% 94%, rgba(255,255,255,.10) 0 115px, transparent 116px),
        linear-gradient(135deg, #142b80 0%, #153a98 48%, #09afe3 100%);
}

.auth-banner::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    right: -330px;
    bottom: -300px;
    border: 1px solid rgba(255,255,255,.07);
}

.auth-brand {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    text-align: left;
}

.auth-logo {
    display: block;
    width: 235px;
    max-width: 62%;
    height: auto;
    margin-bottom: 46px;
    object-fit: contain;
}

.auth-brand h2 {
    max-width: 600px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.7px;
    font-weight: 700;
}

.auth-brand > p {
    max-width: 610px;
    color: rgba(255,255,255,.93);
    font-size: 18px;
    line-height: 1.7;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.auth-feature {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 17px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.05);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(2px);
}

.auth-feature i {
    font-size: 17px;
}

/* Área branca do formulário */
.auth-form-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 64px;
    background: #fff;
}

.auth-card {
    width: min(100%, 520px);
}

.auth-register-page .auth-form-area {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 48px;
    padding-bottom: 48px;
}

.auth-register-page .auth-card {
    width: min(100%, 610px);
}

.auth-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--flypper-cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.7px;
    font-weight: 700;
}

.subtitle {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group > label,
.payment-choice-title {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a0b4;
    font-size: 14px;
    pointer-events: none;
}

.input-wrapper input,
.store-address input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrapper input {
    padding: 0 43px 0 44px;
}

.input-wrapper input::placeholder,
.store-address input::placeholder {
    color: #8a94a6;
}

.input-wrapper input:focus,
.store-address input:focus {
    border-color: var(--flypper-blue);
    box-shadow: 0 0 0 3px rgba(23,53,143,.10);
}

.toggle-password {
    position: absolute;
    z-index: 3;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #6f7b91;
    cursor: pointer;
}

.help-text,
.pix-document-note,
.counterpassword-note {
    display: block;
    margin-top: 6px;
    color: #758197;
    font-size: 10.5px;
    line-height: 1.45;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 11px;
}

.input-error {
    border-color: var(--danger) !important;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 20px;
    font-size: 13px;
}

.checkbox {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 9px;
    margin: 0 !important;
    cursor: pointer;
}

.checkbox input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--flypper-blue);
}

.checkbox span {
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    color: #fff;
    background: var(--flypper-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-submit:hover {
    background: #102c80;
    box-shadow: 0 8px 18px rgba(23,53,143,.16);
}

.btn-submit:active {
    transform: translateY(1px);
}

.auth-link {
    margin-top: 22px;
    text-align: center;
    color: #758197;
    font-size: 12px;
}

.auth-link a {
    color: var(--flypper-blue);
    font-weight: 700;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
}

.alert-success {
    color: #067154;
    background: #e9f8f2;
    border: 1px solid #bfe9d9;
}

.alert-error {
    color: #b42318;
    background: #fff0ef;
    border: 1px solid #f2c8c5;
}

.store-address {
    display: flex;
    align-items: stretch;
}

.store-address span {
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f7f9fc;
    color: #6f7b91;
    font-size: 10.5px;
    white-space: nowrap;
}

.store-address input {
    min-width: 0;
    padding: 0 13px;
    border-radius: 0 10px 10px 0;
}

/* Cadastro: mantém as opções existentes, mas no mesmo desenho do anexo */
.registration-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 17px;
}

.registration-mode button {
    min-height: 82px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #24344a;
    transition: .18s;
}

.registration-mode button:hover,
.registration-mode button.active {
    border-color: var(--flypper-blue);
    background: #f7f9ff;
    box-shadow: 0 0 0 2px rgba(23,53,143,.06);
}

.registration-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #edf3ff;
    color: var(--flypper-blue);
}

.registration-mode button.desktop .registration-mode-icon {
    background: #e8f8f1;
    color: var(--success);
}

.registration-mode strong,
.registration-mode small {
    display: block;
}

.registration-mode strong {
    color: var(--text);
    font-size: 12px;
}

.registration-mode small {
    margin-top: 4px;
    color: #758197;
    font-size: 9.5px;
    line-height: 1.45;
}

.desktop-benefit-box {
    display: none;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 17px;
    padding: 12px;
    border: 1px solid #cdebdc;
    border-radius: 10px;
    background: #f1fbf6;
}

.desktop-benefit-box.show {
    display: flex;
}

.desktop-benefit-box > i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #d9f5e7;
    color: #0c936b;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.desktop-benefit-box strong,
.desktop-benefit-box span {
    display: block;
}

.desktop-benefit-box strong {
    color: #176247;
    font-size: 11px;
}

.desktop-benefit-box span {
    margin-top: 3px;
    color: #557565;
    font-size: 9.5px;
    line-height: 1.5;
}

.desktop-counterpassword {
    display: none;
}

.desktop-counterpassword.show {
    display: block;
}

.selected-plan-card {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #f8faff;
}

.selected-plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #e8f0ff;
    color: var(--flypper-blue);
    display: grid;
    place-items: center;
}

.selected-plan-card > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.selected-plan-card small {
    color: #748198;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .09em;
}

.selected-plan-card strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 12px;
}

.selected-plan-card span {
    margin-top: 2px;
    color: #6f7b91;
    font-size: 9.5px;
    line-height: 1.4;
}

.selected-plan-card > a {
    color: var(--flypper-blue);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.selected-plan-card.desktop-hidden,
.payment-section.desktop-hidden {
    display: none;
}

.payment-choice-title {
    margin-bottom: 9px;
}

.payment-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.payment-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-choice-card {
    height: 100%;
    min-height: 86px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: .18s;
}

.payment-choice input:checked + .payment-choice-card {
    border-color: var(--flypper-blue);
    background: #f7f9ff;
    box-shadow: 0 0 0 2px rgba(23,53,143,.06);
}

.payment-choice-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 16px;
}

.payment-choice.pix .payment-choice-icon {
    background: #e7fbf7;
    color: #13a89e;
}

.payment-choice.card .payment-choice-icon {
    background: #edf3ff;
    color: var(--flypper-blue);
}

.payment-choice-card strong,
.payment-choice-card small {
    display: block;
}

.payment-choice-card strong {
    color: var(--text);
    font-size: 11px;
}

.payment-choice-card small {
    margin-top: 4px;
    color: #6f7b91;
    font-size: 9px;
    line-height: 1.4;
}

.btn-submit.desktop-mode {
    background: #0d8f69;
}

@media (max-width: 1100px) {
    .auth-page {
        grid-template-columns: 48% 52%;
    }

    .auth-banner {
        padding: 48px 42px;
    }

    .auth-brand h2 {
        font-size: 42px;
    }

    .auth-form-area {
        padding: 46px 42px;
    }
}

@media (max-width: 860px) {
    .auth-page {
        display: block;
    }

    .auth-banner {
        min-height: auto;
        padding: 34px 26px 38px;
    }

    .auth-brand {
        width: 100%;
    }

    .auth-logo {
        width: 170px;
        margin-bottom: 25px;
    }

    .auth-brand h2 {
        max-width: 580px;
        font-size: 34px;
        letter-spacing: -.8px;
    }

    .auth-brand > p {
        font-size: 14px;
        line-height: 1.55;
    }

    .auth-features {
        margin-top: 24px;
        gap: 9px;
    }

    .auth-feature {
        min-height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

    .auth-form-area,
    .auth-register-page .auth-form-area {
        min-height: auto;
        overflow: visible;
        padding: 40px 24px 52px;
    }

    .auth-card,
    .auth-register-page .auth-card {
        width: min(100%, 620px);
    }
}

@media (max-width: 580px) {
    .auth-banner {
        padding: 28px 20px 32px;
    }

    .auth-logo {
        width: 150px;
        margin-bottom: 20px;
    }

    .auth-brand h2 {
        font-size: 28px;
    }

    .auth-brand > p {
        font-size: 12px;
    }

    .auth-features {
        gap: 7px;
    }

    .auth-feature {
        min-height: 35px;
        border-radius: 9px;
        padding: 0 10px;
        font-size: 10px;
    }

    .auth-form-area,
    .auth-register-page .auth-form-area {
        padding: 34px 18px 44px;
    }

    .auth-card h1 {
        font-size: 29px;
    }

    .subtitle {
        font-size: 13px;
    }

    .form-row,
    .registration-mode,
    .payment-choice-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .registration-mode,
    .payment-choice-grid {
        gap: 9px;
    }

    .store-address span {
        display: none;
    }

    .store-address input {
        border-radius: 10px;
    }

    .selected-plan-card {
        grid-template-columns: 38px 1fr;
    }

    .selected-plan-card > a {
        grid-column: 2;
        justify-self: start;
    }
}

/* Vendas Flypper - complementos específicos da tela de login */
.login-help-link {
    color: var(--flypper-blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.login-help-link:hover {
    text-decoration: underline;
}

@media (max-width: 580px) {
    .form-options {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* Vendas Flypper - apoio visual do cadastro */
.auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border: 1px solid #d9e6f8;
    border-radius: 10px;
    background: #f7faff;
}

.auth-info-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e8f0ff;
    color: var(--flypper-blue);
}

.auth-info-box strong,
.auth-info-box small,
.alert-error-item {
    display: block;
}

.auth-info-box strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 12px;
}

.auth-info-box small {
    color: #6f7b91;
    font-size: 10.5px;
    line-height: 1.5;
}

.alert-error > div {
    min-width: 0;
}

.alert-error > div > strong {
    display: block;
    margin-bottom: 3px;
}

.alert-error-item {
    margin-top: 2px;
}
