/* ================================================================
   AUTH PAGES — Sign In, Registration, Forgot Password
   Standalone styles (these pages don't use AdminLTE layout)
   ================================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ── ANIMATED GRADIENT BACKGROUND ── */
body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* ── WRAPPER ── */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    margin: 0 auto;
}

.auth-wrapper.auth-wide {
    max-width: 500px;
}

/* ── LOGO / BRAND ── */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand-name {
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.auth-brand-name:hover {
    color: #4338ca;
}
.auth-brand-tagline {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── CARD ── */
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px rgba(0, 0, 0, 0.06);
    padding: 40px 36px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.auth-card-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 28px;
}

/* ── FORM ELEMENTS ── */
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"],
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}
.auth-form input:focus,
.auth-form select:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.auth-form input::placeholder {
    color: #cbd5e1;
}

/* ── PASSWORD FIELD WITH TOGGLE ── */
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.password-toggle:hover {
    color: #475569;
}

/* ── CHECKBOX ── */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    border-radius: 4px;
    cursor: pointer;
}
.auth-checkbox label {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 0;
    cursor: pointer;
}

/* ── FORM ROW (remember me + forgot) ── */
.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.auth-form-row a {
    font-size: 13px;
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.auth-form-row a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ── SUBMIT BUTTON ── */
.auth-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.auth-btn:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}
.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* ── ALERT / STATUS MESSAGES ── */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.auth-alert-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}
.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.auth-alert-error .auth-alert-icon { color: #ef4444; }
.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.auth-alert-success .auth-alert-icon { color: #22c55e; }

/* ── FOOTER LINKS ── */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}
.auth-footer a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
.auth-footer a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ── DIVIDER ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #cbd5e1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── BACK LINK ── */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
    margin-top: 16px;
}
.auth-back:hover {
    color: #4f46e5;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 16px;
    }
    .auth-card {
        padding: 28px 24px;
    }
    .auth-card-title {
        font-size: 20px;
    }
}
