/**
 * Modern Authentication Pages
 * Babcock University Library Management System
 */

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
    min-height: 600px;
}

/* Left Side - Branding */
.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #003366 0%, #001F3F 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: rgba(185, 141, 59, 0.1);
    border-radius: 50%;
}

.auth-brand-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: rgba(185, 141, 59, 0.08);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
}

.auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    /* filter: brightness(0) invert(1); */
}

.auth-brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-brand-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.auth-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    opacity: 0.95;
}

.auth-features li i {
    color: rgb(185, 141, 59);
    margin-right: 1rem;
    font-size: 1.25rem;
}

.auth-brand-footer {
    position: relative;
    z-index: 2;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Right Side - Form */
.auth-form-side {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-form-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.auth-form-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #003366 0%, #0047AB 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
}

.auth-form-icon i {
    font-size: 2rem;
    color: white;
}

.auth-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 0.5rem;
}

.auth-form-description {
    color: #6B7280;
    font-size: 1rem;
}

/* Form Styling */
.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.auth-form-label .required {
    color: #EF4444;
    margin-left: 2px;
}

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.125rem;
}

.auth-form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.auth-form-control:focus {
    outline: none;
    border-color: #003366;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.auth-form-control::placeholder {
    color: #9CA3AF;
}

.auth-form-text {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

.auth-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-form-check label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.auth-forgot-link {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.auth-forgot-link a {
    color: #003366;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link a:hover {
    color: rgb(185, 141, 59);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #003366 0%, #0047AB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.auth-btn-secondary {
    background: white;
    color: #003366;
    border: 2px solid #E5E7EB;
}

.auth-btn-secondary:hover {
    background: #F9FAFB;
    border-color: #003366;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer-text {
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
}

.auth-footer-text a {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-text a:hover {
    color: rgb(185, 141, 59);
}

/* Alerts */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.auth-alert i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.auth-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.auth-alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.auth-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #3B82F6;
}

.auth-alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* OTP Input */
.auth-otp-input {
    text-align: center;
    letter-spacing: 1rem;
    font-size: 2rem;
    font-weight: 700;
    padding: 1.25rem;
    font-family: 'Courier New', monospace;
}

.auth-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    color: #92400E;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-timer i {
    font-size: 1.25rem;
}

.auth-timer.expired {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

/* Test Accounts Section */
.auth-test-accounts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.auth-test-accounts h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-test-accounts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-test-accounts li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6B7280;
}

.auth-test-accounts strong {
    color: #003366;
    font-weight: 600;
}

/* Password Requirements */
.auth-password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.auth-password-requirements ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.auth-password-requirements li {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        margin: 1rem;
    }

    .auth-brand-side {
        padding: 3rem 2rem;
        min-height: 300px;
    }

    .auth-brand-title {
        font-size: 2rem;
    }

    .auth-form-side {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 0;
    }

    .auth-container {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
    }

    .auth-brand-side {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }

    .auth-brand-title {
        font-size: 1.75rem;
    }

    .auth-brand-subtitle {
        font-size: 1rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-side {
        padding: 2rem 1.5rem;
    }

    .auth-form-title {
        font-size: 1.5rem;
    }

    .auth-otp-input {
        font-size: 1.5rem;
        letter-spacing: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-brand-side {
        padding: 1.5rem 1rem;
    }

    .auth-form-side {
        padding: 1.5rem 1rem;
    }

    .auth-logo {
        max-width: 140px;
    }

    .auth-form-icon {
        width: 60px;
        height: 60px;
    }

    .auth-form-icon i {
        font-size: 1.5rem;
    }
}
