/* ==========================================================================
   DBCS OLD BOYS ASSOCIATION - LANDING & AUTH STYLES
   Context: Specifically for Index.cshtml, Login.cshtml, and Register.cshtml
   Identity Colors: #2e51a2 (Choir Blue), #333 (Charcoal), #dc3545 (Danger)
   Effect: Glassmorphism + 3D Tactile UI
   ========================================================================== */

/* --- 1. CORE LANDING LAYOUT --- 
   Establishes the cinematic background and centering logic.
*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    /* Main cinematic background from the project manifest */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/images/Front_background2.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 2. LANDING IDENTITY (LOGO) --- */
.landing-content-wrapper {
    text-align: center;
    width: 90%;
    max-width: 1100px;
    z-index: 5;
}

.landing-logo-main {
    max-height: 160px;
    height: auto;
    /* Soft glow/shadow to lift the logo off the background image */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 50px;
}

    .landing-logo-main:hover {
        transform: scale(1.08) rotate(1deg);
    }

/* --- 3. 3D TACTILE BUTTONS (UIVERSE STYLE) --- 
   Used for the main landing page button grid.
*/
.landing-button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.btn-modern-landing {
    background-color: #333; /* Legacy Charcoal */
    color: #f8f9fa;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 0px #111; /* Tactile Shadow */
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-modern-landing:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 0px #111;
        color: #fff;
    }

    .btn-modern-landing:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0px #111;
    }

    /* Accent Variant (Choir Blue) */
    .btn-modern-landing.active-accent {
        background-color: #2e51a2;
        box-shadow: 0 5px 0px #1a2e5c;
    }

        .btn-modern-landing.active-accent:hover {
            background-color: #3d66c5;
            box-shadow: 0 7px 0px #1a2e5c;
        }

    /* Danger Variant (Logout/Cancel) */
    .btn-modern-landing.danger-accent {
        background-color: #dc3545;
        box-shadow: 0 5px 0px #a71d2a;
    }

/* --- 4. GLASSMORPHISM (AUTH MODULES) --- 
   Used for Login and Registration cards.
*/
.glass-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
}

.glass-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: rgba(40, 40, 40, 0.85); /* Semi-transparent charcoal */
    backdrop-filter: blur(15px); /* Core Glassmorphism property */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 90px 45px 45px 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* The Overlapping Circular Avatar for Auth Cards */
.glass-avatar {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #fff 0%, #2e51a2 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

    .glass-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: #000;
        object-fit: contain;
    }

/* --- 5. REGISTRATION STEPPER & FORMS --- */

/* Horizontal progress bar for the 5-step registration */
.progress-tabs {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 10px;
}

.progress-step {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
}

    .progress-step.active {
        background: #2e51a2;
        color: white;
        box-shadow: 0 4px 12px rgba(46, 81, 162, 0.4);
    }

/* Form Grid Logic */
.glass-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
}

/* Widen the card on desktop for registration steps */
@media (min-width: 992px) {
    .glass-card.registration-wide {
        max-width: 950px;
    }

    .glass-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .full-width {
        grid-column: span 3;
    }
}

/* Label Styling */
.modern-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.required-label::after {
    content: ' *';
    color: #ffc107; /* Golden Yellow asterisk */
}

/* --- 6. SYNCFUSION GLASS OVERRIDES (v32.1.25) --- 
   Ensures EJS controls fit the Glassmorphism aesthetic.
*/
.glass-control.e-control,
.glass-control.e-input-group {
    background: rgba(233, 242, 255, 0.95) !important; /* Slightly blue-tinted white for readability */
    border-radius: 12px !important;
    border: none !important;
    padding-left: 10px !important;
}

    .glass-control.e-input-group.e-input-focus {
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(46, 81, 162, 0.4) !important;
    }

/* Custom submit button for Glass Cards */
.btn-glass-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #2e51a2, #4a6dbf);
    color: white;
    border-radius: 15px;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    .btn-glass-submit:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
    }

/* --- 7. FOOTER POSITIONING --- */
.landing-footer {
    position: fixed;
    bottom: 25px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    z-index: 10;
}

    .landing-footer a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-weight: 700;
    }

        .landing-footer a:hover {
            color: #fff;
            text-decoration: underline;
        }
/* --- FIX: TAB PANE VISIBILITY --- */
.tab-pane {
    display: none; /* Hide all tabs by default */
}

    .tab-pane.active {
        display: grid; /* Show the active tab as a grid (to maintain .glass-grid layout) */
    }