/* FutureOS — split-screen de autenticação. Escopo restrito às páginas de login e cadastro. */
.auth-page {
    --auth-ink: #211b34;
    --auth-muted: #77738a;
    --auth-purple: #7542dc;
    --auth-purple-deep: #582bb3;
    --auth-line: #e9e5f1;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 14% 10%, rgba(124, 58, 237, .09), transparent 30%),
        radial-gradient(ellipse at 92% 90%, rgba(96, 66, 190, .07), transparent 28%),
        #f4f2f8;
    color: var(--auth-ink);
    font-family: 'Inter', sans-serif;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page .login-container {
    width: min(1320px, 100%);
    max-width: none;
    min-height: min(820px, calc(100vh - 48px));
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(43, 31, 76, .14), 0 5px 18px rgba(43, 31, 76, .05);
}

/* Hero / branding panel */
.auth-page .login-info {
    position: relative;
    isolation: isolate;
    flex: 0 0 42%;
    min-width: 0;
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 17% 21%, rgba(105, 86, 225, .42), transparent 37%),
        radial-gradient(ellipse at 94% 63%, rgba(18, 148, 173, .24), transparent 36%),
        linear-gradient(145deg, #17152f 0%, #11142b 49%, #17112b 100%);
}
.auth-page .login-info::before,
.auth-page .login-info::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}
.auth-page .login-info::before {
    width: 390px;
    height: 390px;
    right: -245px;
    top: -175px;
    border: 1px solid rgba(210, 197, 255, .13);
    box-shadow: 0 0 0 32px rgba(210,197,255,.025), 0 0 0 70px rgba(210,197,255,.018);
}
.auth-page .login-info::after {
    width: 300px;
    height: 300px;
    left: -205px;
    bottom: -220px;
    background: rgba(115, 66, 220, .18);
    filter: blur(10px);
}
.auth-page .auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 clamp(48px, 7vh, 82px);
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.auth-page .auth-brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 5px 16px rgba(151, 120, 255, .36));
}
.auth-page .auth-brand span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.045em;
}
.auth-page .auth-hero-copy { position: relative; z-index: 1; max-width: 560px; }
.auth-page .auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 23px;
    color: #d2c6ff;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auth-page .auth-eyebrow i { color: #a996ff; font-size: 13px; }
.auth-page .auth-hero-copy h1 {
    max-width: 570px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(31px, 3.4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.055em;
}
.auth-page .auth-hero-copy h1 span {
    display: block;
    color: #b8a4ff;
}
.auth-page .auth-hero-copy p {
    max-width: 440px;
    margin: 0 0 32px;
    color: rgba(236, 233, 251, .72);
    font-size: 15px;
    line-height: 1.75;
}
.auth-page .auth-hero-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: clamp(28px, 5vh, 54px);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.13);
    color: rgba(236,233,251,.66);
    font-size: 12px;
}
.auth-page .auth-footer-mark {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(183,164,255,.24);
    border-radius: 9px;
    color: #c7b8ff;
    background: rgba(138,100,229,.16);
}

/* Form panel */
.auth-page .login-form-side {
    position: relative;
    flex: 1 1 58%;
    min-width: 0;
    padding: 72px clamp(32px, 6vw, 86px) 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--auth-ink);
    background: linear-gradient(155deg, #fff 0%, #fff 72%, #fcfbff 100%);
}
.auth-page .login-form-side > :not(.btn-back-auth) {
    width: 100%;
    max-width: 480px;
    margin-right: auto;
    margin-left: auto;
}
.auth-page .btn-back-auth {
    position: absolute;
    top: 24px;
    left: 32px;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #766e89;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.auth-page .btn-back-auth:hover {
    color: var(--auth-purple-deep);
    background: #f4f0ff;
    transform: translateX(-2px);
}
.auth-page .auth-logo {
    margin: 0 auto 30px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid var(--auth-line);
    text-align: left;
}
.auth-page .auth-logo h2 {
    margin: 0;
    color: #211b34;
    font-size: clamp(25px, 2.6vw, 33px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.045em;
}
.auth-page .auth-logo p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}
.auth-page .form-group label {
    display: block;
    margin: 0 0 8px;
    color: #39344a !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}
.auth-page .form-group input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #e4e0eb;
    border-radius: 12px;
    color: #262239;
    background: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-page .form-group input::placeholder { color: #aaa5b7; }
.auth-page .form-group input:hover { border-color: #cfc7df; }
.auth-page .form-group input:focus {
    border-color: #8c64e7;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.11);
}
.auth-page .btn-login,
.auth-page .btn-register {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, #7140d8, #6334c1 58%, #552aa7);
    box-shadow: 0 9px 20px rgba(101, 54, 194, .19);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-page .btn-login { margin-top: 4px; }
.auth-page .btn-login:hover,
.auth-page .btn-register:hover {
    color: #fff;
    background: linear-gradient(105deg, #7c4be2, #693ac8 58%, #5c30b2);
    box-shadow: 0 12px 24px rgba(101, 54, 194, .27);
    transform: translateY(-1px);
}
.auth-page .support-link {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
}
.auth-page .support-link a {
    color: #77738a;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease;
}
.auth-page .support-link a:hover { color: var(--auth-purple-deep); }
.auth-page .login-form-side a:not(.btn-back-auth) { color: var(--auth-purple-deep); }
.auth-page .login-form-side a:not(.btn-back-auth):hover { color: #7542dc; }
.auth-page .login-form-side form { gap: 18px !important; }

/* Registration: preserve the full form and let long content scroll naturally. */
.auth-page.register-page {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
}
.auth-page.register-page .login-container {
    min-height: calc(100vh - 48px);
    align-items: stretch;
}
.auth-page.register-page .login-info {
    position: relative;
    align-self: stretch;
    height: auto;
    min-height: calc(100vh - 48px);
}
.auth-page.register-page .login-form-side {
    justify-content: flex-start;
    padding-top: 74px;
    padding-bottom: 52px;
}
.auth-page.register-page .login-form-side > :not(.btn-back-auth) { max-width: 700px; }
.auth-page.register-page .login-form-side > form { margin-top: 0; }
.auth-page.register-page .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 15px; }
.auth-page.register-page .form-group { min-width: 0; }
.auth-page.register-page .form-row .form-group input { min-width: 0; }
.auth-page.register-page .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.auth-page.register-page .plan-card {
    min-height: 112px;
    padding: 15px;
    border: 1px solid #e7e2ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(42,31,73,.035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.auth-page.register-page .plan-card:hover {
    border-color: #b59ce9;
    background: #fcfaff;
    box-shadow: 0 8px 20px rgba(84,51,151,.09);
    transform: translateY(-2px);
}
.auth-page.register-page .plan-card.active {
    border: 2px solid #7d4cda;
    padding: 14px;
    background: linear-gradient(145deg, #faf7ff, #fff);
    box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.auth-page.register-page .plan-card .name { color: #302a43; font-size: 14px; font-weight: 750; }
.auth-page.register-page .plan-card .price { margin: 7px 0 0; color: #6938c4; font-size: 22px; line-height: 1.15; font-weight: 850; }
.auth-page.register-page .plan-card .original-price { margin-top: 5px; font-size: 12px; }
.auth-page.register-page .plan-card .badge { top: -10px; right: 8px; padding: 4px 9px; border-radius: 20px; font-size: 10px; }
.auth-page.register-page .setup-fee-notice {
    border-color: #f1dfb4;
    border-radius: 12px;
    background: #fffaf0;
    color: #805523;
    line-height: 1.6;
}
.auth-page.register-page .total-summary {
    border-color: #e8e3ef;
    border-radius: 14px;
    background: #f8f7fb;
}
.auth-page.register-page .total-summary-row { color: #6d6879; }
.auth-page.register-page .total-summary-row.final { border-color: #e3deeb; color: #28233a; }
.auth-page.register-page .total-summary-row.final .total-val { color: #6938c4; }
.auth-page.register-page .terms-checkbox {
    align-items: flex-start;
    color: #5f5a6d;
    font-size: 12px;
    line-height: 1.55;
}
.auth-page.register-page .terms-checkbox label { color: #5f5a6d !important; }
.auth-page.register-page .terms-checkbox input { accent-color: #7542dc; }
.auth-page.register-page .recaptcha-box { max-width: 100%; overflow: visible; }
.auth-page.register-page .recaptcha-box iframe { max-width: 100%; }
.auth-page.register-page .pix-container { width: 100%; }
.auth-page.register-page .pix-qr { max-width: 100%; height: auto; }
.auth-page.register-page .pix-code { display: block; max-width: 100%; }

@media (max-width: 900px) {
    .auth-page { padding: 18px; }
    .auth-page .login-container {
        width: min(700px, 100%);
        min-height: 0;
        flex-direction: column;
        border-radius: 24px;
    }
    .auth-page .login-info { flex: none; padding: 32px 36px; }
    .auth-page .auth-brand { margin-bottom: 30px; }
    .auth-page .auth-hero-copy h1 { max-width: 600px; font-size: clamp(30px, 5vw, 40px); }
    .auth-page .auth-hero-copy p { margin-bottom: 22px; }
    .auth-page .auth-hero-footer { margin-top: 26px; }
    .auth-page .login-form-side { padding: 68px 36px 40px; }
    .auth-page.register-page .login-container { min-height: 0; }
    .auth-page.register-page .login-info {
        position: relative;
        top: auto;
        align-self: stretch;
        height: auto;
        min-height: 0;
    }
    .auth-page.register-page .login-form-side { padding-top: 70px; }
}

@media (max-width: 560px) {
    .auth-page { padding: 10px; align-items: flex-start; }
    .auth-page .login-container { width: 100%; border-radius: 20px; }
    .auth-page .login-info { padding: 25px 23px 23px; }
    .auth-page .auth-brand { gap: 10px; margin-bottom: 28px; }
    .auth-page .auth-brand img { width: 36px; height: 36px; }
    .auth-page .auth-brand span { font-size: 20px; }
    .auth-page .auth-eyebrow { margin-bottom: 15px; font-size: 9px; letter-spacing: .09em; }
    .auth-page .auth-hero-copy h1 { margin-bottom: 12px; font-size: 30px; }
    .auth-page .auth-hero-copy p { margin-bottom: 18px; font-size: 13px; line-height: 1.65; }
    .auth-page .auth-hero-footer { margin-top: 20px; padding-top: 15px; font-size: 11px; }
    .auth-page .login-form-side { padding: 64px 23px 30px; }
    .auth-page .btn-back-auth { top: 16px; left: 17px; padding: 7px 9px; font-size: 12px; }
    .auth-page .auth-logo { margin-bottom: 23px; padding-bottom: 16px; }
    .auth-page .auth-logo h2 { font-size: 25px; }
    .auth-page .auth-logo p { font-size: 13px; }
    .auth-page .support-link { margin-top: 22px; }
    .auth-page.register-page .login-info { padding: 25px 23px; }
    .auth-page.register-page .login-form-side { padding-top: 62px; }
    .auth-page.register-page .form-row { grid-template-columns: 1fr; gap: 13px; }
    .auth-page.register-page .plan-grid { gap: 11px; }
    .auth-page.register-page .plan-card { min-height: 105px; padding: 12px; }
    .auth-page.register-page .plan-card.active { padding: 11px; }
    .auth-page.register-page .plan-card .price { font-size: 19px; }
    .auth-page.register-page .plan-card .badge { right: 4px; padding: 3px 6px; font-size: 9px; }
    .auth-page.register-page .recaptcha-box { justify-content: flex-start; transform-origin: left top; }
}

@media (max-width: 360px) {
    .auth-page.register-page .plan-grid { grid-template-columns: 1fr; }
    .auth-page.register-page .plan-card { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
