﻿/* =========================================
   FAHAM ALUMNI THEME (FLOATING DUAL-PANEL)
========================================= */
/*:root {
    --al-primary: #4f46e5;*/ /* Deep Indigo */
    /*--al-primary-hover: #4338ca;
    --al-secondary: #8b5cf6;*/ /* Vibrant Purple */
    /*--al-text-dark: #0f172a;
    --al-text-muted: #64748b;
    --al-surface: #ffffff;
    --al-input-bg: #f8fafc;
}*/
:root {
    --al-primary: #3d4592; /* Exact Deep Blue from the USKT logo */
    --al-primary-hover: #2f3575; /* Darker shade for button hovers */
    --al-secondary: #5c6bc0; /* Lighter modern blue for gradients (avoiding gold) */

    --al-text-dark: #0f172a; /* Slate 900 for crisp readability */
    --al-text-muted: #64748b; /* Slate 500 for secondary text */
    --al-surface: #ffffff;
    --al-input-bg: #f8fafc;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #020617; /* Fallback dark */
}

/* --- ANIMATIONS --- */
@keyframes alCardEntrance {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes alPulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* --- FULLSCREEN VIEWPORT & BACKGROUND --- */
.alumni-viewport {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.alumni-bg-image {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.5) blur(2px); /* Darkened and subtly blurred */
    transform: scale(1.05); /* Prevents blur bleeding at edges */
}

.alumni-bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0) 100%);
    z-index: 1;
}

/* --- THE FLOATING DUAL-PANEL CARD --- */
.alumni-card-container {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 1000px; /* Constrained floating width */
    min-height: 600px;
    background: var(--al-surface);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden; /* Clips the inner panels to the border radius */
    animation: alCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- LEFT PANEL: VIBRANT BRANDING --- */
.alumni-brand-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--al-primary) 0%, var(--al-secondary) 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
}

.brand-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.brand-glow-circle {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(50px);
    border-radius: 50%;
    animation: alPulseGlow 8s ease-in-out infinite;
}

.brand-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Force logo to be white to contrast with the gradient */
.alumni-logo {
    height: 125px;
    width: 360px;
    object-fit: contain;
    margin-bottom: 3.5rem;
}

.brand-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.text-highlight {
    color: #cbd5e1;
}

.brand-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 90%;
}

.brand-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
}

.brand-footer-text {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 30px
}

/* --- RIGHT PANEL: SOLID WHITE FORM --- */
.alumni-form-panel {
    width: 480px; /* Fixed width for the form side */
    background: var(--al-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 3rem;
}

.form-inner-wrapper {
    width: 100%;
    max-width: 360px;
}

.form-header {
    margin-bottom: 2rem;
}

    .form-header h2 {
        color: var(--al-text-dark);
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 0.5rem;
    }

    .form-header p {
        color: var(--al-text-muted);
        font-size: 0.95rem;
        margin: 0;
    }

/* --- INSTRUCTIONS CALLOUT --- */
.form-instructions-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--al-primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.instructions-header {
    display: flex;
    align-items: center;
    color: var(--al-text-dark);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.icon-accent {
    color: var(--al-primary);
}

.instructions-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--al-text-muted);
    line-height: 1.5;
}

    .instructions-list li {
        margin-bottom: 0.2rem;
    }

        .instructions-list li:last-child {
            margin-bottom: 0;
        }

/* --- MODERN INPUTS --- */
.modern-input .mud-input-root {
    background-color: var(--al-input-bg) !important;
    border-radius: 10px;
}

.modern-input input {
    color: var(--al-text-dark) !important;
    font-weight: 500;
}

.modern-input .mud-input-adornment-icon {
    color: #94a3b8 !important;
}

.modern-input .mud-input-outlined-border {
    border-radius: 10px !important;
    border-color: #e2e8f0 !important;
    transition: all 0.2s ease;
}

.modern-input:hover .mud-input-outlined-border {
    border-color: #cbd5e1 !important;
}

.modern-input.mud-input-focused .mud-input-root {
    background-color: #ffffff !important;
}

.modern-input.mud-input-focused .mud-input-outlined-border {
    border-color: var(--al-primary) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

.modern-input .mud-input-label {
    color: var(--al-text-muted) !important;
}

/* --- BUTTONS & LINKS --- */
.modern-btn-primary {
    height: 52px;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: none !important;
    background: var(--al-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease !important;
}

    .modern-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
        background: var(--al-primary-hover) !important;
    }

.modern-checkbox .mud-typography {
    color: var(--al-text-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500;
}

.modern-link {
    color: var(--al-primary) !important;
    font-weight: 700 !important;
    transition: color 0.2s ease;
}

    .modern-link:hover {
        color: var(--al-secondary) !important;
    }

.form-alert {
    animation: alShake 0.4s ease-in-out;
}

.form-footer-action {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.modern-btn-outline {
    height: 52px;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: none !important;
    border: 2px solid var(--al-primary) !important;
    color: var(--al-primary) !important;
    transition: all 0.2s ease !important;
}

    .modern-btn-outline:hover {
        background: rgba(79, 70, 229, 0.05) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 960px) {
    .alumni-card-container {
        max-width: 500px;
        flex-direction: column;
    }

    .alumni-brand-panel {
        display: none;
    }

    .alumni-form-panel {
        width: 100%;
        padding: 3rem 2rem;
    }

    .form-inner-wrapper {
        margin: 0 auto;
    }
}
