/* Esparta Concursos v4.0.1 — acesso e recuperação (sem scripts/estilos inline) */
#authGate.auth-gate{background:radial-gradient(ellipse at 7% 12%,rgba(144,93,36,.20),transparent 37%),radial-gradient(ellipse at 92% 90%,rgba(100,24,36,.16),transparent 39%),#111315;color:#f7f3eb;padding:28px 18px}
.auth-layout{width:min(100%,1020px);min-height:588px;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(370px,.96fr);background:#18191b;border:1px solid #3a342b;border-radius:28px;overflow:hidden;box-shadow:0 30px 95px rgba(0,0,0,.40)}
.auth-story{position:relative;padding:38px 44px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 80% 25%,rgba(215,169,78,.16),transparent 39%),linear-gradient(148deg,#251f1a,#171719 63%,#321b1c);border-right:1px solid rgba(213,166,77,.16);overflow:hidden}
.auth-story:after{content:'Σ';font-family:Georgia,serif;font-size:27rem;position:absolute;bottom:-175px;right:-40px;color:rgba(220,171,84,.035);line-height:1;pointer-events:none}
.auth-story-logo{width:min(290px,100%);height:auto;display:block;position:relative;z-index:1}
.auth-story-body{position:relative;z-index:1;margin:32px 0}
.auth-story-tag,.auth-secure-line{font-size:.71rem;font-weight:800;letter-spacing:.13em;color:#d6aa60}
.auth-story-body h2{color:#f7f1e7;font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.025em;font-size:clamp(1.95rem,3vw,2.85rem);line-height:1.18;margin:18px 0}
.auth-story-body h2 em{color:#e2b86b;font-style:normal}
.auth-story-body p{color:#c7bdb0;font-size:.95rem;line-height:1.65;max-width:385px}
.auth-story-benefits{display:flex;flex-direction:column;align-items:flex-start;gap:11px;margin-top:28px;color:#e2cfac;font-size:.84rem;font-weight:600}
.auth-story-footer{position:relative;z-index:1;color:#8e8374;letter-spacing:.12em;font-weight:750;font-size:.64rem}
.auth-layout .gate-card.auth-form-card{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none;background:#fdfaf4;color:#241f1a;padding:48px clamp(24px,4vw,48px);align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.auth-secure-line{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#976e30;letter-spacing:.075em}
.auth-secure-line span{font-size:.6rem;color:#387656;white-space:nowrap;letter-spacing:0}
.auth-form-card h1{font-size:clamp(1.65rem,3vw,2.15rem);font-family:Georgia,'Times New Roman',serif;margin:16px 0 4px;font-weight:650;line-height:1.16;color:#201b16}
.auth-intro{color:#756b61;font-size:.88rem;line-height:1.55;margin:10px 0 20px}
.auth-form-card .field{margin:11px 0}
.auth-form-card .field>span:first-child{color:#534a40;font-size:.78rem;margin-bottom:7px}
.auth-form-card .select,.recovery-form .select{background:#fff;border:1px solid #d9cec0;border-radius:11px;color:#211c17;box-shadow:none;font-size:.94rem;min-height:48px;padding:12px 14px}
.auth-form-card .select:focus,.recovery-form .select:focus{outline:2px solid #d6ae65;outline-offset:0;border-color:#b38a41;box-shadow:none}
.auth-switch{display:flex;gap:5px;background:#f0e9df;padding:5px;border-radius:12px;margin:0 0 9px}
.auth-switch button{font:inherit;font-size:.83rem;color:#75695a;font-weight:800;border:0;background:none;border-radius:9px;min-height:40px;flex:1;cursor:pointer}
.auth-switch button.selected{color:#5c351a;background:white;box-shadow:0 2px 8px rgba(42,34,23,.10)}
.auth-password-row{display:flex;align-items:stretch;position:relative}
.auth-password-row input{width:100%;padding-right:85px!important}
.auth-password-row button{position:absolute;right:5px;top:5px;bottom:5px;padding:0 9px;background:transparent;color:#7a572a;border:0;border-radius:8px;font-size:.76rem;font-weight:800;cursor:pointer}
.auth-password-row button:focus-visible,.auth-switch button:focus-visible{outline:2px solid #d6ae65}
.auth-forgot-link{display:block;text-align:right;color:#875b25;text-decoration:none;font-weight:800;font-size:.78rem;margin:5px 0 17px}
.auth-forgot-link:hover,.auth-legal a:hover{text-decoration:underline}
.auth-layout .primary.auth-continue{margin:3px 0 8px;min-height:50px;background:linear-gradient(115deg,#b98a41,#d5ad63);color:#201911;border:1px solid #b78b48;border-radius:11px;box-shadow:0 8px 20px rgba(117,78,28,.18);font-size:.9rem;font-weight:850}
.auth-continue span{font-size:1.15rem}
.auth-secondary-links{text-align:center;color:#756b61;font-size:.78rem;margin-top:13px;line-height:1.6}
.auth-secondary-links button{border:0;background:transparent;color:#845e2d;cursor:pointer;font-weight:850;text-decoration:underline;text-underline-offset:3px;padding:3px}
.auth-helper{color:#817769;margin:5px 0 12px;font-size:.76rem}
.auth-legal{font-size:.71rem;color:#81796e;text-align:center;margin:30px 0 0;line-height:1.65}
.auth-legal a{color:#6f522f;text-decoration:underline;text-underline-offset:2px}
.auth-form-card .auth-feedback{background:#efe8dd;font-size:.78rem;color:#63451b;border-radius:9px;line-height:1.5}
.auth-form-card .auth-feedback.ok{color:#266748;background:#e9f4ec}.auth-form-card .auth-feedback.error{color:#9a2c2c;background:#faece8}
.auth-mobile-logo{display:none}

/* Página separada, com acesso seguro ao Supabase apenas via /api/config */
body.recovery-page{background:radial-gradient(circle at 20% 0%,rgba(178,130,59,.16),transparent 32rem),#111315;color:#f6f0e8;min-height:100vh;display:grid;place-items:center;padding:28px 16px}
.recovery-shell{width:min(100%,496px);display:flex;flex-direction:column;align-items:stretch;gap:14px}
.recovery-logo{width:228px;max-width:76%;align-self:center;margin:0 auto 14px}
.recovery-card{background:#fdfaf4;color:#241f1a;border:1px solid #e0d3c2;border-radius:23px;padding:clamp(24px,5vw,38px);box-shadow:0 24px 65px rgba(0,0,0,.35)}
.recovery-card .step-icon{height:48px;width:48px;display:grid;place-items:center;background:#f2e6d0;color:#855c28;border-radius:15px;margin-bottom:16px;font-size:1.4rem}
.recovery-card h1{font-family:Georgia,'Times New Roman',serif;color:#25201a;font-size:1.85rem;line-height:1.2;margin:3px 0 8px}
.recovery-card p{color:#6c6259;font-size:.89rem;line-height:1.58;margin:0 0 20px}
.recovery-form .field>span{color:#51483d;font-size:.8rem}
.recovery-form .field{margin:16px 0}
.recovery-form button[type="submit"]{display:flex;width:100%;margin-top:17px;min-height:50px;background:#b78942;color:#201911;box-shadow:none}
.recovery-form button[disabled]{opacity:.6;cursor:wait}
.recovery-card .auth-feedback{color:#735016;background:#f7ecd9}
.recovery-card .auth-feedback.ok{background:#ebf4ec;color:#2a6c49}
.recovery-card .auth-feedback.error{background:#fbeae8;color:#972e2c}
.recovery-back{display:block;text-align:center;color:#ecd3a2;font-size:.88rem;text-decoration:none;font-weight:800;margin-top:17px}
.recovery-back:hover{text-decoration:underline}
.recovery-foot{text-align:center;color:#b2a697;font-size:.72rem;line-height:1.5}
.recovery-card [hidden]{display:none!important}
.recovery-success .step-icon{background:#e6f3e9;color:#2f7a55}
@media(max-width:770px){.auth-layout{max-width:465px;min-height:auto;display:block;overflow:visible;border:0;background:transparent;border-radius:0;box-shadow:none}.auth-story{display:none}.auth-layout .gate-card.auth-form-card{border-radius:20px;padding:clamp(23px,6vw,36px);box-shadow:0 18px 45px rgba(0,0,0,.25)}.auth-mobile-logo{display:block;text-align:center;margin:-7px 0 19px}.auth-mobile-logo img{width:200px;max-width:80%;display:block;margin:auto}.auth-secure-line span{font-size:.57rem}.auth-form-card h1{font-size:1.7rem}.auth-intro{margin-bottom:17px}}
@media(max-width:360px){.auth-layout .gate-card.auth-form-card{padding:22px 17px}.auth-secure-line{font-size:.61rem}.auth-form-card h1{font-size:1.52rem}}

.auth-links a{color:var(--brand);font-size:.82rem;font-weight:800;text-decoration:underline;text-underline-offset:3px;padding:5px 0}
