/*===========================================
  UNIVERSITY AUTHENTICATION THEME
  Clean, organized CSS for EnrollAssess
  Minimalist: Maroon + Grayscale Only
===========================================*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --maroon-primary: #800020;
    --maroon-dark: #5c0017;
    --maroon-light: #a0002a;

    /* Secondary Colors */
    --yellow-primary: #FFD700;
    --yellow-dark: #E6C200;
    --yellow-light: #FFF8DC;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-gray: #E5E7EB;
    --text-gray: #6B7280;

    /* Effects */
    --shadow-primary: 0 2px 8px rgba(128, 0, 32, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 12px rgba(128, 0, 32, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 24px rgba(128, 0, 32, 0.12);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Figtree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== LAYOUT CONTAINERS ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(128, 0, 32, 0.1);
    position: relative;
    transition: var(--transition);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #800020 0%, #FFD700 100%);
    z-index: 1;
}

/* ===== HEADER SECTION ===== */
.auth-header {
    background: transparent;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
}

.university-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--maroon-primary);
    box-shadow: 0 2px 8px rgba(128, 0, 32, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition);
}

.university-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #800020 0%, #FFD700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.university-logo:hover::before {
    opacity: 1;
}

.university-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.university-name {
    color: var(--maroon-primary);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

/* ===== FORM SECTION ===== */
.auth-body {
    padding: 40px 32px;
    background: transparent;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    color: var(--maroon-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.025em;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(128, 0, 32, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: var(--transition);
    color: #1f2937;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
}

.form-control::placeholder {
    color: #6B7280;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--maroon-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    transform: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: #fef2f2;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    text-align: left;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #800020 0%, #5c0017 100%);
    border: none;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(128, 0, 32, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5c0017 0%, #800020 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== INFORMATION SECTION ===== */
.auth-links {
    margin-top: 25px;
    text-align: center;
}

.info-note {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
}

.info-note-text {
    color: var(--maroon-primary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.info-note strong {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
    border-radius: 10px;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
    
    .university-name {
        font-size: 20px;
    }
    
    .university-logo {
        width: 70px;
        height: 70px;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .auth-header {
        padding: 25px 15px;
    }
    
    .auth-body {
        padding: 25px 15px;
    }
    
    .university-name {
        font-size: 18px;
    }
}