/* ================================================================
   THE SCHOLAR'S COMMONS — Auth Page Styles
   Compact, centered login card with copyright at bottom
   ================================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B4332 0%, #0B2B1F 40%, #3D1C23 100%);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(182, 141, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(114, 47, 55, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Decorative geometric patterns */
.auth-page::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(182, 141, 64, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #FEFCF6;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow:
        0 24px 64px rgba(11, 43, 31, 0.25),
        0 8px 24px rgba(44, 24, 16, 0.1);
    border: 1px solid rgba(226, 217, 200, 0.3);
    animation: scaleIn 0.4s ease;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px 20px;
        border-radius: 14px;
    }
}

/* Academic crest logo */
.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #1B4332 0%, #0B2B1F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.25);
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(182, 141, 64, 0.3);
    border-radius: 9px;
}

.auth-logo h1 {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: #2C1810;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Auth form headings */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 600;
    color: #2C1810;
    margin: 0 0 4px;
}

.auth-subtitle {
    color: #8B7355;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
}

/* Form styling within auth */
.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form .form-label {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 12px;
    color: #2C1810;
    margin-bottom: 4px;
    display: block;
}

.auth-form .form-control {
    padding: 10px 14px;
    border: 1px solid #E2D9C8;
    border-radius: 8px;
    background: #FFFFFF;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    transition: all 0.25s ease;
}

.auth-form .form-control:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

.auth-form .form-control::placeholder {
    color: #A89880;
}

/* Row: remember me + forgot password */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-link {
    color: #1B4332;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: #2D6A4F;
    text-decoration: underline;
}

/* Primary button in auth */
.auth-form .btn-primary {
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    background: #1B4332;
    border-color: #1B4332;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.25);
    transition: all 0.25s ease;
    font-family: 'Source Sans 3', sans-serif;
    margin-top: 4px;
}

.auth-form .btn-primary:hover {
    background: #0B2B1F;
    border-color: #0B2B1F;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.35);
    transform: translateY(-1px);
}

/* Checkbox */
.auth-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #6B5744;
    font-family: 'Source Sans 3', sans-serif;
}

.auth-form .checkbox-label input[type="checkbox"] {
    accent-color: #1B4332;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #1B4332;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
    font-family: 'Source Sans 3', sans-serif;
}

.auth-links a:hover {
    color: #2D6A4F;
    text-decoration: underline;
}

/* Alert styling for auth pages */
.auth-card .alert {
    margin-bottom: 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* Copyright footer */
.auth-copyright {
    position: fixed;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-family: 'Source Sans 3', sans-serif;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .logo-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .auth-logo h1 {
        font-size: 16px;
    }
}

/* Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}