/* Plataforma G+ — acesso claro, alinhado à identidade Ganho Mais. */
:root {
    color-scheme: light;
    --gm-violet: #4404ab;
    --gm-violet-dark: #330085;
    --gm-violet-soft: #f0e8ff;
    --gm-orange: #ff6600;
    --gm-text: #21152e;
    --gm-muted: #62596d;
    --gm-border: #ded7e8;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--gm-text); background: #f6f5f9; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--gm-violet); outline-offset: 4px; }
.login-wrapper { display: grid; grid-template-columns: 1.12fr 1fr; width: min(1160px, calc(100% - 64px)); min-height: 680px; margin: 32px auto; margin: max(32px, calc((100svh - 740px) / 2)) auto 32px; border: 1px solid var(--gm-border); border-radius: 24px; overflow: hidden; background: #fff; }
.story-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px 48px; background: var(--gm-violet-soft); }
.story-brand { display: block; width: 250px; max-width: 100%; height: auto; margin-left: -20px; mix-blend-mode: multiply; }
.brand-badge { margin-top: 34px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gm-violet); }
.status-dot { display: none; }
.story-title { margin: 0; font: 700 clamp(2.1rem, 3.4vw, 3.2rem)/1.15 var(--font-display); letter-spacing: -.05em; }
.story-title .highlight { color: var(--gm-violet); }
.story-desc { max-width: 370px; margin: 0; font-size: 1rem; line-height: 1.7; color: var(--gm-muted); }
.story-pillars { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 20px; }
.pillar-card { display: flex; align-items: center; gap: 12px; }
.pillar-icon { display: flex; color: var(--gm-violet); }
.pillar-icon svg { width: 20px; height: 20px; }
.pillar-title { font-size: .88rem; font-weight: 500; }
.story-trust { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; color: var(--gm-muted); font-size: .75rem; line-height: 1.6; }
.trust-icon { color: var(--gm-violet); flex-shrink: 0; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 48px; min-width: 0; }
.auth-card { width: 100%; max-width: 370px; }
.card-topbar { display: none; }
.step-tag { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: .65rem; color: var(--gm-violet); letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.card-heading { margin: 0 0 12px; font: 700 clamp(1.6rem, 2.4vw, 2rem)/1.2 var(--font-display); letter-spacing: -.04em; }
.card-subheading { color: var(--gm-muted); font-size: .9rem; line-height: 1.7; margin: 0 0 28px; }
.card-subheading strong { color: var(--gm-text); overflow-wrap: anywhere; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 8px; font-size: .82rem; color: var(--gm-text); font-weight: 600; }
.input-wrapper { position: relative; }
.text-input { width: 100%; min-height: 52px; padding: 12px 16px 12px 46px; border: 1px solid var(--gm-border); border-radius: 9px; font-size: 1rem; color: var(--gm-text); background: #fff; }
.text-input::placeholder { color: #756c80; }
.input-icon { display: flex; position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--gm-muted); pointer-events: none; }
.input-icon svg { width: 19px; height: 19px; }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid transparent; border-radius: 9px; background: var(--gm-violet); color: #fff; font-weight: 600; font-size: .9rem; transition: background .18s; }
.btn-submit:hover:not(:disabled) { background: var(--gm-violet-dark); }
.btn-submit:disabled { opacity: .65; cursor: wait; }
.btn-spinner { display: none; width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.btn-submit.loading .btn-spinner { display: block; }
.otp-container { margin-bottom: 22px; }
.otp-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.otp-digit { width: 100%; min-width: 0; height: 56px; padding: 0; text-align: center; border: 1px solid var(--gm-border); border-radius: 9px; color: var(--gm-text); background: #fff; font: 700 1.5rem var(--font-display); caret-color: var(--gm-violet); }
.otp-digit.filled { background: #f8f5ff; border-color: var(--gm-violet); }
.otp-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .78rem; color: var(--gm-muted); }
.timer-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--gm-violet); }
.timer-badge svg { width: 14px; height: 14px; }
.secondary-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.link-action { padding: 10px 4px; min-height: 44px; border: 0; background: none; color: var(--gm-violet); font-size: .82rem; font-weight: 600; }
.link-action:hover:not(:disabled) { text-decoration: underline; }
.link-action:disabled { cursor: not-allowed; color: var(--gm-muted); }
.status-box { display: none; gap: 10px; align-items: flex-start; padding: 14px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 9px; font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.status-box.visible { display: flex; }
.status-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.status-box.error { color: #9f1239; background: #fff1f2; border-color: #fecdd3; }
.status-box.success { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.card-security-footer { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--gm-muted); font-size: .75rem; line-height: 1.6; }
.card-security-footer svg { color: var(--gm-violet); flex-shrink: 0; height: 17px; width: 17px; margin-top: 2px; }
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shakeKeyframe { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.shake { animation: shakeKeyframe .35s; }
@media (max-width: 900px) {
    .login-wrapper { width: min(720px, calc(100% - 32px)); margin: 24px auto; grid-template-columns: 1fr; }
    .story-side { padding: 24px 32px 30px; gap: 14px; }
    .story-brand { width: 220px; }
    .brand-badge { margin-top: 0; }
    .story-title { font-size: 2rem; }
    .story-title br { display: none; }
    .story-desc { max-width: 100%; font-size: .9rem; }
    .story-pillars, .story-trust { display: none; }
    .auth-side { padding: 32px; }
    .auth-card { max-width: 100%; }
}
@media (max-width: 480px) {
    .login-wrapper { width: 100%; margin: 0; border: 0; border-radius: 0; min-height: 100vh; min-height: 100svh; align-content: start; }
    .story-side { padding: 16px 24px 24px; }
    .story-title { font-size: 1.8rem; }
    .auth-side { padding: 28px 24px 40px; }
    .otp-inputs { gap: 6px; }
    .otp-digit { height: 48px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
