/* ============================================================
   Auth Pages – Shared & Combined Styles
   Extracted from login, register, forgot-password, reset-password
   ============================================================ */


/* === Login & Register (split-layout pages) === */

* { margin:0; padding:0; box-sizing:border-box; font-family:'Cairo',sans-serif; }
body { min-height:100vh; background:#f8fafc; display:flex; }

/* --- Side panel (shared structure) --- */
.auth-side {
    width:45%; min-height:100vh; position:relative; overflow:hidden;
    display:flex; align-items:center; justify-content:center; padding:60px;
}
.auth-side::before {
    content:''; position:absolute; top:-50%; right:-50%;
    width:100%; height:100%; border-radius:50%;
    background:rgba(255,255,255,.05);
}
.auth-side::after {
    content:''; position:absolute; bottom:-30%; left:-30%;
    width:80%; height:80%; border-radius:50%;
    background:rgba(255,255,255,.03);
}
.auth-side-content { position:relative; z-index:1; color:#fff; }
.auth-side-content h1 { font-size:2.2rem; font-weight:800; margin-bottom:16px; line-height:1.3; }
.auth-side-content p { font-size:15px; opacity:.85; line-height:1.8; max-width:360px; }

/* Login side – indigo gradient */
.auth-side--login {
    background:linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a78bfa 100%);
}

/* Register side – green gradient */
.auth-side--register {
    background:linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

/* Login side-panel feature list */
.auth-side-content .features { margin-top:32px; }
.auth-side-content .features li {
    display:flex; align-items:center; gap:12px; margin-bottom:14px;
    font-size:14px; opacity:.9;
}
.auth-side-content .features li i {
    width:32px; height:32px; border-radius:8px;
    background:rgba(255,255,255,.15); display:flex;
    align-items:center; justify-content:center; font-size:14px; flex-shrink:0;
}

/* Register side-panel stats */
.auth-side-content .stats {
    display:flex; gap:32px; margin-top:36px;
}
.auth-side-content .stats .stat-item { text-align:center; }
.auth-side-content .stats .stat-num {
    font-size:2rem; font-weight:800; display:block; line-height:1;
}
.auth-side-content .stats .stat-label { font-size:12px; opacity:.75; margin-top:4px; }

/* --- Main content area --- */
.auth-main {
    flex:1; display:flex; align-items:center; justify-content:center; padding:40px;
}
.auth-box { width:100%; max-width:440px; }
.auth-box h2 { font-size:24px; font-weight:800; color:#111827; margin-bottom:6px; }
.auth-box .subtitle { font-size:14px; color:#6b7280; }

/* Login variant */
.auth-box--login .subtitle { margin-bottom:28px; }
.auth-box--login .auth-logo { margin-bottom:32px; }
.auth-box--login .auth-logo a { font-size:22px; font-weight:800; color:#4f46e5; text-decoration:none; }

/* Register variant */
.auth-box--register .subtitle { margin-bottom:24px; }
.auth-box--register .auth-logo { margin-bottom:28px; }
.auth-box--register .auth-logo a { font-size:22px; font-weight:800; color:#059669; text-decoration:none; }

/* --- Form fields (shared) --- */
.form-field { margin-bottom:18px; }
.form-field label { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.form-field input {
    width:100%; padding:11px 16px; border:1.5px solid #e5e7eb;
    border-radius:10px; font-size:14px; color:#111827;
    background:#fff; transition:all .2s; outline:none;
}
.form-field input::placeholder { color:#9ca3af; }

/* Register uses tighter spacing */
.auth-box--register .form-field { margin-bottom:16px; }

/* Focus color – login (indigo) */
.auth-box--login .form-field input:focus {
    border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.1);
}

/* Focus color – register (green) */
.auth-box--register .form-field input:focus {
    border-color:#059669; box-shadow:0 0 0 3px rgba(5,150,105,.1);
}

/* Two-column row (register passwords) */
.form-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Login remember-me / forgot row */
.form-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.form-check { display:flex; align-items:center; gap:8px; font-size:13px; color:#6b7280; cursor:pointer; }
.form-check input[type=checkbox] {
    width:16px; height:16px; border-radius:4px; accent-color:#4f46e5; cursor:pointer;
}

/* --- Password toggle --- */
.password-wrapper { position:relative; }
.password-wrapper input { padding-left:44px; }
.toggle-pw {
    position:absolute; left:12px; top:50%; transform:translateY(-50%);
    background:none; border:none; color:#9ca3af; cursor:pointer; padding:4px; font-size:16px;
}
.toggle-pw:hover { color:#4f46e5; }
.auth-box--register .toggle-pw:hover { color:#059669; }

/* --- Submit button --- */
.btn-submit {
    width:100%; padding:12px; border:none; border-radius:10px;
    color:#fff; font-size:15px; font-weight:700;
    cursor:pointer; transition:all .2s; display:flex; align-items:center;
    justify-content:center; gap:8px;
}

/* Login button (indigo) */
.auth-box--login .btn-submit {
    background:#4f46e5;
}
.auth-box--login .btn-submit:hover {
    background:#4338ca; box-shadow:0 4px 14px rgba(79,70,229,.3); transform:translateY(-1px);
}

/* Register button (green) */
.auth-box--register .btn-submit {
    background:#059669; margin-top:6px;
}
.auth-box--register .btn-submit:hover {
    background:#047857; box-shadow:0 4px 14px rgba(5,150,105,.3); transform:translateY(-1px);
}

/* --- Divider --- */
.auth-divider {
    text-align:center; margin:24px 0; position:relative;
    font-size:12px; color:#9ca3af;
}
.auth-divider::before, .auth-divider::after {
    content:''; position:absolute; top:50%; width:40%; height:1px; background:#e5e7eb;
}
.auth-divider::before { right:0; }
.auth-divider::after { left:0; }

/* --- Auth switch link --- */
.auth-switch {
    text-align:center; font-size:14px; color:#6b7280; margin-top:20px;
}
.auth-box--login .auth-switch a { color:#4f46e5; font-weight:600; text-decoration:none; }
.auth-box--register .auth-switch a { color:#059669; font-weight:600; text-decoration:none; }
.auth-switch a:hover { text-decoration:underline; }

/* --- Alerts (shared) --- */
.alert {
    padding:12px 16px; border-radius:10px; margin-bottom:18px; font-size:13px;
}
.alert-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.alert-success { background:#ecfdf5; color:#059669; border:1px solid #a7f3d0; }

/* Register terms text */
.terms { font-size:12px; color:#9ca3af; text-align:center; margin-top:16px; line-height:1.6; }

/* Responsive */
@media (max-width: 991px) {
    .auth-side { display:none; }
    .auth-main { padding:24px; }
}


/* === Forgot Password & Reset Password (centered-box pages) === */

body.auth-centered {
    align-items:center; justify-content:center; padding:20px;
}

.box {
    width:100%; max-width:420px; background:#fff; border-radius:20px;
    padding:40px; box-shadow:0 4px 24px rgba(0,0,0,.06); border:1px solid #e5e7eb;
}
.box .logo { text-align:center; margin-bottom:28px; }
.box .logo a { font-size:22px; font-weight:800; color:#4f46e5; text-decoration:none; }

.box h2 {
    font-size:20px; font-weight:800; color:#111827; text-align:center;
}
.box h2.mb-sm { margin-bottom:4px; }
.box h2.mb-md { margin-bottom:20px; }

.box .sub { font-size:13px; color:#6b7280; text-align:center; margin-bottom:24px; }

.box .field { margin-bottom:16px; }
.box .field label { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.box .field input {
    width:100%; padding:11px 16px; border:1.5px solid #e5e7eb;
    border-radius:10px; font-size:14px; outline:none; transition:border .2s;
}
.box .field input:focus { border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.1); }

.btn-main {
    width:100%; padding:12px; border:none; border-radius:10px;
    background:#4f46e5; color:#fff; font-size:15px; font-weight:700;
    cursor:pointer; transition:all .2s;
}
.btn-main:hover { background:#4338ca; }

.box .back { text-align:center; margin-top:16px; font-size:13px; }
.box .back a { color:#4f46e5; text-decoration:none; font-weight:600; }
