/* Basic reset */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#0f1724; background:#0f1724; }

/* Main page */
.auth-page {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(135deg, #0f1724 0%, #0b1220 40%, #0b1d3a 100%);
    padding:32px;
}

/* Central container */
.auth-container {
    width:100%;
    max-width:980px;
    display:grid;
    grid-template-columns: 1fr 420px;
    gap:32px;
    align-items:center;
}

/* Brand / illustration */
.brand {
    color: #ffffff;
    padding:32px;
}
.brand .logo { width:76px; height:76px; object-fit:contain; border-radius:14px; display:block; margin-bottom:12px; box-shadow: 0 6px 18px rgba(2,6,23,0.6); }
.brand h1 { margin:0 0 8px 0; font-size:32px; font-weight:700; letter-spacing:-0.5px; }
.brand .lead { margin:0; opacity:0.9; font-weight:500; max-width:520px; }

/* Card (glass) */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius:14px;
    padding:28px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.04);
}

/* Form fields */
.field { display:block; margin-bottom:16px; }
.label-text { display:block; font-size:13px; color:#cbd5e1; margin-bottom:8px; }
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
    width:100%;
    padding:12px 14px;
    border-radius:10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color:#e6eef8;
    outline:none;
    transition: box-shadow .18s, border-color .12s;
}
.field input::placeholder { color: #9fb3d4; }
.field input:focus {
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.12);
    border-color: rgba(30,144,255,0.7);
}

/* Password wrapper & toggle */
.password-wrapper { position:relative; display:flex; align-items:center; }
.password-wrapper .toggle-password {
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    border: none;
    background: transparent;
    color:#9fb3d4;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px;
    border-radius:8px;
    cursor:pointer;
}
.password-wrapper .toggle-password:focus { outline:2px solid rgba(30,144,255,0.18); }

/* Errors */
.field-error { color:#ffb4b4; font-size:13px; margin-top:6px; display:block; }

/* Row flex helpers */
.row { display:flex; align-items:center; gap:12px; }
.between { justify-content:space-between; }

/* Checkbox style */
.checkbox { display:flex; align-items:center; gap:8px; color:#cbd5e1; font-size:14px; }
.checkbox input[type="checkbox"] { width:16px; height:16px; accent-color: #1d9bf0; }

/* Links */
.link { color:#9fc5ff; text-decoration:none; font-weight:600; }
.link:hover { text-decoration:underline; }

/* Button primary */
.btn-primary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    padding:12px 16px;
    border-radius:12px;
    border: none;
    background: linear-gradient(90deg, #2b9bf3, #1476e6);
    color:white;
    font-weight:700;
    font-size:16px;
    cursor:pointer;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s;
    box-shadow: 0 8px 24px rgba(20,118,230,0.24);
}
.btn-primary:active { transform:translateY(1px) scale(.998); }
.btn-primary[disabled] { opacity:0.6; cursor:not-allowed; transform:none; box-shadow:none; }

/* Divider */
.divider { margin:18px 0; display:flex; align-items:center; gap:12px; color:#93b1d8; font-size:13px; }
.divider::before, .divider::after { content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,0.03)); }

/* Social buttons */
.socials { display:flex; gap:10px; margin-bottom:10px; }
.btn-social {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:10px;
    font-weight:600;
    color:#0b1220;
    background:#fff;
    text-decoration:none;
    box-shadow: 0 6px 16px rgba(2,6,23,0.16);
    transition: transform .08s ease;
}
.btn-social svg { display:block; }
.btn-social.google { background: #fff; color: #111827; }
.btn-social.github { background:#0b1220; color:#ffffff; }

/* Small text */
.small { font-size:13px; color:#98b8da; text-align:center; margin-top:14px; }
.muted { opacity:0.9; }

/* Signup text */
.signup { margin-top:12px; font-size:14px; color:#cfe4ff; text-align:center; }

/* Responsive */
@media (max-width:900px) {
    .auth-container { grid-template-columns: 1fr; padding:12px; gap:20px; }
    .brand { text-align:center; }
    .card { order:2; }
}

/* Screen-reader only */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
