@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Dancing+Script:wght@700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&family=Yantramanav:wght@500;700;900&display=swap');

:root {
    --login-navy-deep: #050e18;
    --login-navy-dark: #071526;
    --login-navy-primary: #0b1f3a;
    --login-navy-card: #0f2744;
    --login-blue-accent: #0052cc;
    --login-blue-btn-top: #0a3a75;
    --login-blue-btn-bot: #021e40;
    --login-gold: #f59e0b;
    --login-gold-dark: #d97706;
    --login-gold-light: #fbbf24;
    --login-text-dark: #0b192c;
    --login-text-muted: #64748b;
    --login-bg-input: #f8fafc;
    --login-border-input: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    background: #06111e;
    color: #1e293b;
    overflow-x: hidden;
}

/* ========================================================= */
/* BACKGROUND SLIDESHOW (Sliders 1, 2, 3)                   */
/* ========================================================= */
.login-bg-slider-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: opacity, transform;
    animation: loginBgKenBurns 18s infinite ease-in-out;
}

.login-bg-slide.slide-1 {
    animation-delay: 0s;
}

.login-bg-slide.slide-2 {
    animation-delay: 6s;
}

.login-bg-slide.slide-3 {
    animation-delay: 12s;
}

@keyframes loginBgKenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    4% {
        opacity: 1;
    }
    29% {
        opacity: 1;
    }
    33.33% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(6, 17, 30, 0.35) 0%, rgba(3, 10, 19, 0.68) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 2;
}

/* Master Wrapper */
.login-master-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
    z-index: 2;
}

/* Ambient Lighting Effect */
.login-master-wrapper::before {
    content: '';
    position: fixed;
    top: -120px;
    left: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-master-wrapper::after {
    content: '';
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(11, 60, 120, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Main Login Canvas Card - Compact & Balanced */
.login-canvas-card {
    width: 100%;
    max-width: 950px;
    min-height: 520px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 5, 15, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
    display: flex;
    position: relative;
    overflow: hidden;
}

/* =============================================================
   DESKTOP LEFT HERO SECTION (Building, Quote, Badges, Footer Bar)
   ============================================================= */
.login-hero-side {
    flex: 1.08;
    position: relative;
    background: var(--login-navy-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Top Hindi Quote Box */
.login-quote-box {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 14px 8px 12px;
    border-radius: 11px;
    border-left: 3.5px solid var(--login-gold);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 310px;
}

.login-quote-symbol {
    font-size: 24px;
    line-height: 1;
    color: var(--login-gold-dark);
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}

.login-quote-content {
    display: flex;
    flex-direction: column;
}

.login-quote-title {
    font-family: 'Noto Sans Devanagari', 'Yantramanav', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #0b192c;
    line-height: 1.3;
}

.login-quote-sub {
    font-family: 'Noto Sans Devanagari', 'Yantramanav', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #991b1b;
    line-height: 1.3;
}

/* Campus Building Image Frame */
.login-building-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    overflow: hidden;
    z-index: 1;
}

.login-building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
    filter: brightness(1.02) contrast(1.04);
}

.login-building-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 21, 38, 0.08) 0%, rgba(7, 21, 38, 0) 40%, rgba(7, 21, 38, 0.45) 100%);
    pointer-events: none;
}

/* Bottom Dark Navy Information Bar */
.login-hero-bottom-bar {
    position: relative;
    z-index: 5;
    margin-top: auto;
    background: linear-gradient(180deg, #071526 0%, #0a1c33 100%);
    border-top: 2.5px solid var(--login-gold);
    padding: 12px 18px 12px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

/* Location Row */
.hero-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-location-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: #0b192c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero-location-text {
    font-size: 10.5px;
    color: #e2e8f0;
    line-height: 1.35;
    font-weight: 500;
}

.hero-location-text strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    font-size: 11.5px;
}

/* 4 Feature Pillars Grid */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hero-feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-feature-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--login-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 3px;
    transition: all 0.25s ease;
}

.hero-feature-item:hover .hero-feature-icon-wrap {
    background: var(--login-gold);
    color: #0b192c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.hero-feature-title {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.hero-feature-sub {
    font-size: 9px;
    color: #94a3b8;
    line-height: 1.15;
}

/* =============================================================
   DESKTOP RIGHT LOGIN SECTION (Logo, Heading, Form, Watermark)
   ============================================================= */
.login-form-side {
    flex: 1;
    background: #ffffff;
    padding: 26px 34px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    border-left: 2px solid rgba(245, 158, 11, 0.25);
}

/* Top Right Script Motto */
.login-script-motto {
    position: absolute;
    top: 18px;
    right: 24px;
    text-align: right;
    font-family: 'Caveat', cursive;
    color: var(--login-text-dark);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    z-index: 2;
}

.login-script-motto .motto-line {
    display: block;
}

.login-script-motto .motto-underline {
    width: 46px;
    height: 2px;
    background: var(--login-gold);
    border-radius: 2px;
    margin-left: auto;
    margin-top: 2px;
}

/* Header & Logo Container */
.login-form-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}

/* Golden Circular Emblem Badge */
.login-emblem-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 8px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.login-emblem-badge:hover {
    transform: scale(1.05) rotate(2deg);
}

.login-emblem-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.login-emblem-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* College Title Typography */
.college-main-heading {
    font-family: 'Noto Sans Devanagari', 'Yantramanav', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #0b192c;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.college-sub-heading {
    font-family: 'Noto Sans Devanagari', 'Yantramanav', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #0b192c;
    margin: 2px 0 0;
    line-height: 1.2;
}

.college-sub-heading .text-gold-accent {
    color: var(--login-gold-dark);
}

.college-affiliation-tag {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.college-gold-divider {
    width: 50px;
    height: 2.5px;
    background: var(--login-gold);
    border-radius: 2px;
    margin: 6px auto 0;
}

/* Form Container */
.login-form-container {
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
}

/* Input Field Group */
.login-field-wrap {
    margin-bottom: 12px;
    position: relative;
}

.login-input-box {
    width: 100%;
    height: 44px;
    background: var(--login-bg-input);
    border: 1.5px solid var(--login-border-input);
    border-radius: 11px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.login-input-box:focus-within {
    background: #ffffff;
    border-color: var(--login-blue-accent);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12), 0 2px 6px rgba(0, 82, 204, 0.08);
}

.login-input-box.has-error-box {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.12);
}

.login-input-icon {
    font-size: 14px;
    color: var(--login-text-muted);
    margin-right: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.login-input-box:focus-within .login-input-icon {
    color: var(--login-blue-accent);
}

.login-native-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--login-text-dark) !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.login-native-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Password Toggle Button */
.btn-pwd-toggle-clean {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-pwd-toggle-clean:hover {
    color: #0b192c;
}

.login-field-error-msg {
    display: block;
    font-size: 11.5px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 3px;
    padding-left: 4px;
}

/* Meta Row: Remember Me & Forgot Password */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.login-remember-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    color: #334155;
    font-weight: 500;
    margin: 0;
}

.login-remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0052cc;
    cursor: pointer;
    border-radius: 4px;
}

.login-forgot-btn {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Gradient Action Button */
.btn-login-gradient {
    width: 100%;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--login-blue-btn-top) 0%, var(--login-blue-btn-bot) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(11, 60, 120, 0.35), 0 2px 5px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-login-gradient:hover::before {
    left: 100%;
}

.btn-login-gradient:hover {
    background: linear-gradient(135deg, #0e4c96 0%, #042956 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(11, 60, 120, 0.42);
    color: #ffffff;
}

.btn-login-gradient:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(11, 60, 120, 0.25);
}

.btn-login-gradient i {
    font-size: 15px;
}

/* Bottom Footer (Knowledge Today / Since 2010) */
.login-form-footer-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
}

.login-knowledge-motto {
    display: flex;
    flex-direction: column;
}

.slogan-top-text {
    font-size: 11.5px;
    font-weight: 700;
    color: #0b192c;
    line-height: 1.25;
}

.slogan-bottom-text {
    font-size: 10.5px;
    font-weight: 600;
    color: #475569;
    line-height: 1.25;
}

.slogan-gold-bar {
    width: 38px;
    height: 2px;
    background: var(--login-gold);
    border-radius: 2px;
    margin-top: 3px;
}

.login-since-tag {
    text-align: right;
    font-family: 'Dancing Script', 'Caveat', cursive;
    color: #334155;
    line-height: 1;
}

.since-text-script {
    font-size: 18px;
    display: block;
    color: #64748b;
}

.since-year-number {
    font-size: 28px;
    font-weight: 700;
    color: #0b192c;
    letter-spacing: 0.05em;
}

/* =============================================================
   MOBILE ADAPTIVE LAYOUT (<= 860px) - Exact Match to 11.webp
   ============================================================= */
@media (max-width: 860px) {
    .login-master-wrapper {
        padding: 12px 10px 24px;
        align-items: flex-start;
    }

    .login-canvas-card {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
        border-radius: 24px;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
        background: #071526;
        margin: 0 auto;
    }

    /* Mobile Top Header - Clean Light/Sky Gradient matching 11.webp */
    .mobile-login-top-header {
        background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 75%, #f8fafc 100%);
        border-radius: 24px 24px 0 0;
        padding: 18px 16px 12px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .mobile-login-top-header .login-emblem-badge {
        width: 70px;
        height: 70px;
        margin: 0 auto 6px;
    }

    .mobile-login-top-header .college-main-heading {
        color: #0b192c;
        font-size: 21px;
    }

    .mobile-login-top-header .college-sub-heading {
        color: #0b192c;
        font-size: 19px;
    }

    .mobile-login-top-header .college-sub-heading .text-gold-accent {
        color: var(--login-gold-dark);
    }

    .mobile-login-top-header .college-affiliation-tag {
        color: #1e293b;
        font-size: 12px;
        font-weight: 700;
        margin-top: 2px;
    }

    .mobile-login-top-header .login-script-motto {
        top: 12px;
        right: 14px;
        font-size: 15px;
        color: #0b192c;
    }

    .mobile-login-top-header .login-script-motto .motto-underline {
        width: 44px;
        height: 2px;
    }

    .mobile-tagline-bar {
        font-family: 'Noto Sans Devanagari', sans-serif;
        font-size: 12px;
        font-weight: 800;
        color: #0b192c;
        margin-top: 8px;
        padding-top: 6px;
        border-top: 2px solid var(--login-gold);
        letter-spacing: -0.01em;
    }

    /* Mobile Building Photo with Golden Wave Borders */
    .mobile-building-frame {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
        background: #071526;
        border-top: 2px solid var(--login-gold);
        border-bottom: 2px solid var(--login-gold);
    }

    .mobile-building-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

    /* Mobile Wave Overlay - Positioned above floating card without cutoff */
    .mobile-wave-overlay {
        position: absolute;
        bottom: 34px;
        right: 0;
        background: linear-gradient(135deg, rgba(7, 21, 38, 0.95) 0%, rgba(11, 31, 58, 0.98) 100%);
        padding: 7px 14px 7px 20px;
        border-radius: 16px 0 0 16px;
        border-top: 2px solid var(--login-gold);
        border-left: 2px solid var(--login-gold);
        border-bottom: 2px solid var(--login-gold);
        text-align: right;
        z-index: 5;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    }

    .mobile-wave-overlay .wave-text-top {
        font-family: 'Noto Sans Devanagari', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        display: block;
        line-height: 1.2;
    }

    .mobile-wave-overlay .wave-text-sub {
        font-family: 'Noto Sans Devanagari', sans-serif;
        font-size: 11.5px;
        font-weight: 700;
        color: var(--login-gold-light);
        display: block;
        line-height: 1.2;
    }

    .mobile-wave-overlay .wave-gold-line {
        width: 36px;
        height: 2px;
        background: var(--login-gold);
        margin-left: auto;
        margin-top: 2px;
    }

    /* Mobile Floating Login Form Card */
    .login-form-side {
        padding: 22px 18px 18px;
        border-radius: 20px;
        background: #ffffff;
        margin: -20px 10px 14px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        position: relative;
        z-index: 10;
        border-left: none;
    }

    /* Hide desktop-only elements on mobile */
    .login-hero-side {
        display: none !important;
    }

    .desktop-only-header {
        display: none !important;
    }

    .desktop-only-motto {
        display: none !important;
    }

    /* Mobile 4 Features Pillars (Inside Card) */
    .mobile-features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
    }

    .mobile-feature-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-feature-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #d97706;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .mobile-feature-text {
        font-size: 10px;
        font-weight: 600;
        color: #0b192c;
        line-height: 1.2;
    }

    .mobile-feature-sub {
        font-size: 9px;
        color: #64748b;
        line-height: 1.15;
    }

    /* Mobile Location Footer (on navy canvas) */
    .mobile-bottom-canvas-footer {
        padding: 6px 16px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: left;
    }

    .mobile-bottom-canvas-footer .loc-icon-bubble {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #ffffff;
        color: #0b192c;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-canvas-footer .loc-text-wrap {
        font-size: 11.5px;
        color: #cbd5e1;
        font-weight: 500;
        line-height: 1.35;
    }

    .mobile-bottom-canvas-footer .loc-text-wrap strong {
        color: #ffffff;
        font-weight: 600;
        display: block;
    }
}

/* Desktop Only Helpers */
@media (min-width: 861px) {
    .mobile-only-section {
        display: none !important;
    }
}
