:root {
    --em-red:#e50914;
    --em-bg:#06070a;
    --em-panel:rgba(15,17,23,.94);
    --em-text:#f5f7fa;
    --em-muted:#aeb5c0;
}
* { box-sizing:border-box; }
html { background:var(--em-bg); }
body { margin:0;min-height:100vh;color:var(--em-text);background:var(--em-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input { font:inherit; }
button { cursor:pointer; }
.auth-header { position:fixed;inset:0 0 auto;z-index:100;display:flex;align-items:center;min-height:78px;padding:7px clamp(14px,4vw,60px);border-bottom:1px solid rgba(255,255,255,.05);background:rgba(4,5,8,.86);backdrop-filter:blur(16px); }
.auth-brand { width:76px;height:62px;flex:0 0 auto; }
.auth-brand img { width:100%;height:100%;object-fit:contain; }
.header-link { margin-left:auto;padding:11px 16px;border:1px solid rgba(255,255,255,.17);border-radius:999px;color:#eef0f4;background:rgba(255,255,255,.07);font-size:12px;font-weight:800;text-decoration:none; }
.header-link:hover { background:rgba(255,255,255,.14); }
.auth-page { position:relative;min-height:calc(100vh - 63px);display:grid;place-items:center;overflow:hidden;padding:120px 20px 74px; }
.auth-background { position:absolute;inset:0;background:url('../images/copiaGrupos_b.png') 64% center/cover no-repeat;transform:scale(1.015); }
.auth-overlay { position:absolute;inset:0;background:radial-gradient(circle at 75% 22%,rgba(229,9,20,.12),transparent 28%),linear-gradient(90deg,rgba(3,4,7,.96),rgba(3,4,7,.72) 48%,rgba(3,4,7,.35)),linear-gradient(0deg,#06070a,transparent 38%); }
.auth-card { position:relative;z-index:2;width:min(490px,100%);padding:clamp(30px,4.5vw,54px);border:1px solid rgba(255,255,255,.1);border-radius:22px;background:var(--em-panel);box-shadow:0 32px 90px rgba(0,0,0,.68);backdrop-filter:blur(18px); }
.auth-page--register .auth-card { width:min(570px,100%); }
.eyebrow { margin:0 0 11px;color:#ff3a43;font-size:10px;font-weight:900;letter-spacing:.22em; }
.auth-card h1 { margin:0;font-size:clamp(37px,4vw,53px);line-height:.98;letter-spacing:-.045em; }
.auth-intro { margin:18px 0 0;color:#b8bec8;font-size:14px;line-height:1.6; }
.purchase-notice { margin-top:22px;padding:12px 14px;border:1px solid rgba(229,9,20,.25);border-radius:9px;color:#f1c7c9;background:rgba(229,9,20,.1);font-size:12px;line-height:1.5; }
.form-message { margin:18px 0 0;padding:12px 14px;border:1px solid rgba(255,176,59,.35);border-radius:9px;color:#ffd89b;background:rgba(255,157,12,.1);font-size:12px;line-height:1.45; }
.auth-form { display:grid;gap:16px;margin-top:26px; }
.form-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.field-group { display:grid;gap:7px; }
.field-group label { color:#dfe3e9;font-size:11px;font-weight:800; }
.field-group input { width:100%;min-height:51px;padding:13px 14px;border:1px solid rgba(255,255,255,.12);border-radius:9px;outline:none;color:white;background:rgba(255,255,255,.065);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.field-group input::placeholder { color:#747b86; }
.field-group input:focus { border-color:rgba(255,71,80,.75);background:rgba(255,255,255,.09);box-shadow:0 0 0 3px rgba(229,9,20,.13); }
.primary-button { min-height:52px;margin-top:3px;padding:13px 20px;border:0;border-radius:9px;color:white;background:var(--em-red);box-shadow:0 13px 32px rgba(229,9,20,.27);font-weight:900;transition:transform .2s ease,background .2s ease; }
.primary-button:hover { transform:translateY(-2px);background:#ff202b; }
.forgot-link { display:inline-block;margin-top:17px;color:#b8bec8;font-size:12px;text-decoration:none; }
.forgot-link:hover { color:white; }
.legal-copy { margin:0;color:#7f8691;font-size:10px;line-height:1.55; }
.legal-copy a { color:#b9bfc8; }
.auth-switch { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:21px;border-top:1px solid rgba(255,255,255,.09);color:#9299a4;font-size:12px; }
.auth-switch button,.auth-switch a { padding:0;border:0;color:#ff555d;background:transparent;font-weight:900;text-decoration:none; }
.auth-switch button:hover,.auth-switch a:hover { color:white; }
.auth-footer { display:flex;justify-content:space-between;gap:20px;padding:22px clamp(18px,5vw,70px);border-top:1px solid rgba(255,255,255,.07);color:#707782;background:#030407;font-size:11px; }
.auth-footer p { margin:0; }
.auth-footer a { color:#999fa9;text-decoration:none; }
.auth-footer a:hover { color:white; }
@media (max-width:620px) {
    .auth-header { min-height:70px;padding:6px 12px; }
    .auth-brand { width:64px;height:56px; }
    .header-link { padding:9px 12px;font-size:11px; }
    .auth-page { min-height:calc(100vh - 58px);align-items:start;padding:92px 11px 35px; }
    .auth-background { background-position:70% center; }
    .auth-overlay { background:linear-gradient(0deg,#06070a,rgba(3,4,7,.73) 62%,rgba(3,4,7,.38)); }
    .auth-card { padding:31px 22px 34px;border-radius:16px; }
    .auth-card h1 { font-size:39px; }
    .form-grid { grid-template-columns:1fr;gap:16px; }
    .auth-switch { align-items:flex-start;flex-direction:column;gap:9px; }
    .auth-footer { display:block;text-align:center; }
    .auth-footer a { display:block;margin-top:8px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition-duration:.01ms!important; } }
