/* =====================================================
   Authentication Pages Styles
   HHSCT Scholarship Management System
   ===================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-500) 100%);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.06);
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.06);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--gray-100);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.auth-role-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.auth-role-badge.student { background: var(--info-light); color: var(--info); }
.auth-role-badge.clerk { background: var(--warning-light); color: #92400e; }
.auth-role-badge.admin { background: var(--accent-100); color: var(--accent-600); }

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

.password-toggle:hover { color: var(--gray-700); }

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.auth-links a {
    color: var(--accent-500);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--accent-600);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--gray-400);
    font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Alert Box */
.auth-alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.auth-alert.error {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert.success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Back to Home */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-back:hover {
    color: var(--white);
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin: var(--space-6) 0;
}

.otp-input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--primary-700);
    transition: all var(--transition-fast);
}

.otp-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(39, 64, 96, 0.1);
    outline: none;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: var(--space-6);
    }

    .otp-input {
        width: 44px;
        height: 50px;
        font-size: var(--text-xl);
    }
}
