/**
 * Shashwat Public School - Modern Compact Auth Engine v4
 * Distributed by TeslaStudio
 * Inspired by World-Class EdTech & School Portals
 * Zero Vertical Scroll Guaranteed across 13" MacBook Pro, Laptops, Tablets & Mobile
 */

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

:root {
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.28);
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.auth {
    font-family: var(--font-stack);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1120;
    color: #1e293b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   CAMPUS WALLPAPER & THEME BACKDROPS
   ========================================================= */
.campus-fullscreen-backdrop {
    position: fixed;
    inset: -15px;
    width: calc(100vw + 30px);
    height: calc(100vh + 30px);
    height: calc(100dvh + 30px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.02);
    filter: blur(3px) brightness(0.92);
    -webkit-filter: blur(3px) brightness(0.92);
}

.campus-backdrop-overlay {
    position: absolute;
    inset: 0;
}
.campus-backdrop-overlay.overlay-dark_vignette {
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.15) 0%, rgba(10, 15, 30, 0.42) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Dynamic Portal Water Color Tint (Liquid reflection matching active/hovered role) */
.campus-water-color-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 1;
}

/* Water Tint: Admin (Crimson Lagoon Sheen) */
.campus-water-color-tint.tint-admin {
    background: radial-gradient(circle at 50% 35%, rgba(220, 38, 38, 0.15) 0%, transparent 68%);
}

/* Water Tint: Student (Oceanic Sapphire Lagoon Sheen) */
.campus-water-color-tint.tint-student {
    background: radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.18) 0%, transparent 68%);
}

/* Water Tint: Parent (Emerald Lagoon Aqua Sheen) */
.campus-water-color-tint.tint-parent {
    background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.18) 0%, transparent 68%);
}
.campus-backdrop-overlay.overlay-glass_blur {
    background: rgba(11, 17, 32, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.campus-backdrop-overlay.overlay-theme_tint {
    background: color-mix(in srgb, var(--accent, #10b981) 15%, rgba(11, 17, 32, 0.2));
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

/* Top Campus Badge Pill */
.top-campus-chip {
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.top-campus-chip .campus-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #10b981);
    box-shadow: 0 0 8px var(--accent, #10b981);
}

/* =========================================================
   CONTAINER & LAYOUT MODES
   ========================================================= */
.auth-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Centered Mode */
body.auth.layout-centered .auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
body.auth.layout-centered .auth-card-wrap {
    width: 100%;
    max-width: 380px;
    margin: auto;
}

/* Split Illustration Mode */
body.auth.layout-split .auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
    width: 92%;
    height: 520px;
    min-height: 520px;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
    background: #ffffff;
}
.split-showcase {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: #ffffff;
    overflow: hidden;
}
body.auth[data-bg-mode="theme_art"] .split-showcase {
    background-size: 200% 100%;
    background-position: left center;
}
.split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.split-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
}
.split-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}
.split-footer {
    position: relative;
    z-index: 2;
}
.split-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}
.split-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 5px;
}
.split-subtitle {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
}

body.auth.layout-split .auth-card-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
}
body.auth.layout-split .auth-card {
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

/* =========================================================
   COMPACT AUTH CARD (Modeled after school.jpg & Modern SaaS)
   ========================================================= */
.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 22px 24px 18px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    text-align: center;
}

/* School Crest & Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 12px;
}
.school-logo-frame {
    display: inline-flex;
    margin-bottom: 8px;
}
.school-logo-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.school-logo-img:hover {
    transform: scale(1.03);
}
.school-logo-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
}
.school-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 2px;
}
.school-card-subtitle {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

/* Portal Role Switcher */
.auth-roles-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 2.5px;
    border-radius: 9px;
    margin-bottom: 12px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}
.role-tab {
    flex: 1;
    padding: 5px 3px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.15s ease;
    text-align: center;
}
.role-tab:hover {
    color: #0f172a;
}
.role-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.08);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 7px;
    margin-bottom: 10px;
    text-align: left;
}
.alert-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Form Fields */
.auth-form-body {
    text-align: left;
}
.auth-field {
    margin-bottom: 10px;
}
.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 3.5px;
}
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}
.field-icon {
    position: absolute;
    left: 11px;
    color: #94a3b8;
    width: 14px;
    height: 14px;
    pointer-events: none;
}
.auth-field input {
    width: 100%;
    height: 38px;
    padding: 0 10px 0 33px;
    font-size: 12.5px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}
.auth-card:not(.clean-behance-card) .auth-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.btn-pass-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}
.btn-pass-toggle:hover {
    color: #0f172a;
}

/* Remember me & Forgot Password Row (from school.jpg) */
.auth-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 12px;
}
.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    user-select: none;
}
.remember-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}
.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #000));
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px var(--accent-glow);
    transition: all 0.2s ease;
}
.btn-auth-submit:hover {
    box-shadow: 0 5px 14px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-auth-submit:active {
    transform: translateY(0);
}

/* Card Foot */
.auth-card-footer {
    margin-top: 12px;
    font-size: 10.5px;
    color: #64748b;
}
.auth-card-footer a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}
.auth-card-footer a:hover {
    text-decoration: underline;
}

/* Page Bottom Copyright */
.auth-page-copyright {
    text-align: center;
    font-size: 10.5px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0.2px;
}
body.auth.layout-split .auth-page-copyright {
    color: #94a3b8;
}

/* =========================================================
   DESKTOP & 13" MACBOOK PRO ZERO SCROLL GUARANTEE
   ========================================================= */
@media (min-width: 901px) {
    body.auth {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
}

/* =========================================================
   MOBILE RESPONSIVENESS (iPhone / Android)
   ========================================================= */
@media (max-width: 900px) {
    body.auth.layout-split .auth-container {
        display: block;
        width: 100%;
        max-width: 380px;
        height: auto;
        min-height: auto;
        box-shadow: none;
        background: transparent;
        padding: 12px;
        margin: auto;
    }
    .split-showcase {
        display: none;
    }
    body.auth.layout-split .auth-card-wrap {
        padding: 0;
        width: 100%;
        max-width: 380px;
        margin: auto;
    }
    body.auth.layout-split .auth-card {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 18px;
        padding: 22px 24px 18px;
        box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
        text-align: center;
    }
    body.auth.layout-split .auth-page-copyright {
        color: rgba(255, 255, 255, 0.7);
    }
    .auth-container {
        padding: 12px;
    }
    .top-campus-chip {
        top: 12px;
        left: 12px;
    }
}

/* =========================================================
   CAMPUS HERITAGE - COLLAPSIBLE PORTAL SELECTOR WIDGET
   ========================================================= */

/* Main Stage Wrapper (Holds Unified Trio Stage: Water Logo + Center Card + Portal Tabs) */
.campus-stage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* 1. COLLAPSIBLE SLIDE-OUT PORTAL SELECTOR (COMPACT & JOINED) */
.campus-portal-widget {
    position: relative;
    width: 204px;
    flex-shrink: 0;
    margin-bottom: 14px;
    z-index: 30;
    animation: dockSlideLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dockSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* The Permanent Trigger Tab: Compact height, only this is visible by default ("bas PORTAL SELECTOR show ho") */
.portal-trigger-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    color: #1e293b;
    outline: none;
}

.portal-trigger-tab:hover {
    background: #ffffff;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.trigger-icon-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.portal-trigger-tab:hover .trigger-icon-box {
    color: #0f172a;
    background: #e2e8f0;
    transform: scale(1.05);
}

.trigger-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #334155;
    margin-left: 7px;
    margin-right: auto;
}

.trigger-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Joined state when open ("PORTAL SELECTOR se hee mila hua jese usse juda hai") */
.campus-portal-widget.is-open .portal-trigger-tab {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(226, 232, 240, 0.5);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.campus-portal-widget.is-open .trigger-chevron {
    transform: rotate(90deg);
}

/* 2. Slide-Out Options Wing (Physically joined to trigger, expands on click) */
.portal-flyout-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px) scale(0.98);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 18px 32px -8px rgba(0, 0, 0, 0.26);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.campus-portal-widget.is-open .portal-flyout-panel {
    max-height: 180px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.portal-compact-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 8px 10px 8px;
}

/* Individual Compact Role Item (Small height!) */
.compact-role-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 35px;
    padding: 0 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.85);
    font-size: 11.5px;
    font-weight: 700;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* Staggered slide out from side when opened ("click karte hee side se nikal kar aaye") */
.campus-portal-widget.is-open .compact-role-item {
    animation: slideRoleFromSide 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.campus-portal-widget.is-open .compact-role-item:nth-child(1) {
    animation-delay: 0.04s;
}
.campus-portal-widget.is-open .compact-role-item:nth-child(2) {
    animation-delay: 0.08s;
}
.campus-portal-widget.is-open .compact-role-item:nth-child(3) {
    animation-delay: 0.12s;
}

@keyframes slideRoleFromSide {
    0% {
        opacity: 0;
        transform: translateX(-16px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.compact-role-item:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.role-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.22s ease;
}
.compact-role-item:hover .role-item-icon {
    transform: scale(1.1);
}

.role-item-name {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.role-item-indicator {
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: transparent;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Active States */
.compact-role-item.active {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.compact-role-item.active .role-item-indicator {
    opacity: 1;
}

/* Admin Active */
.compact-role-item.item-admin.active {
    border-color: rgba(220, 38, 38, 0.45);
}
.compact-role-item.item-admin.active .role-item-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.compact-role-item.item-admin.active .role-item-name {
    color: #dc2626;
}
.compact-role-item.item-admin.active .role-item-indicator {
    background: #dc2626;
    box-shadow: 0 0 8px #dc2626;
}

/* Student Active */
.compact-role-item.item-student.active {
    border-color: rgba(37, 99, 235, 0.45);
}
.compact-role-item.item-student.active .role-item-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.compact-role-item.item-student.active .role-item-name {
    color: #2563eb;
}
.compact-role-item.item-student.active .role-item-indicator {
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
}

/* Parent Active */
.compact-role-item.item-parent.active {
    border-color: rgba(5, 150, 105, 0.45);
}
.compact-role-item.item-parent.active .role-item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.compact-role-item.item-parent.active .role-item-name {
    color: #059669;
}
.compact-role-item.item-parent.active .role-item-indicator {
    background: #059669;
    box-shadow: 0 0 8px #059669;
}

/* =========================================================
   7767 ORIGAMI WRAPPED BANNER CARD (from 7767.jpg / 7767.eps)
   ========================================================= */

/* Default & Parent Gateway (Exact 7767 Emerald Mint Palette) */
.campus-stage-wrap,
.campus-stage-wrap.role-mode-parent {
    --origami-plate: #004252;
    --origami-ribbon: #4ce9b6;
    --origami-fold: #217a5c;
    --origami-text: #003846;
    --origami-input-bg: rgba(0, 66, 82, 0.12);
    --origami-input-border: rgba(0, 66, 82, 0.18);
    --origami-btn: #004252;
    --origami-btn-hover: #002d38;
    --origami-btn-text: #ffffff;
    --origami-sheen: linear-gradient(115deg, transparent 52%, rgba(255, 255, 255, 0.22) 52.1%, rgba(255, 255, 255, 0.08) 100%);
}

/* Student Learning Space (Electric Cyan & Deep Sapphire Navy) */
.campus-stage-wrap.role-mode-student {
    --origami-plate: #0b192c;
    --origami-ribbon: #38bdf8;
    --origami-fold: #0284c7;
    --origami-text: #082f49;
    --origami-input-bg: rgba(9, 27, 48, 0.12);
    --origami-input-border: rgba(9, 27, 48, 0.18);
    --origami-btn: #0b192c;
    --origami-btn-hover: #051222;
    --origami-btn-text: #ffffff;
    --origami-sheen: linear-gradient(115deg, transparent 52%, rgba(255, 255, 255, 0.22) 52.1%, rgba(255, 255, 255, 0.08) 100%);
}

/* Staff & Admin (Crimson Rose & Obsidian Executive) */
.campus-stage-wrap.role-mode-admin {
    --origami-plate: #141923;
    --origami-ribbon: #ff5478;
    --origami-fold: #9f1239;
    --origami-text: #3b0716;
    --origami-input-bg: rgba(20, 25, 35, 0.10);
    --origami-input-border: rgba(20, 25, 35, 0.16);
    --origami-btn: #141923;
    --origami-btn-hover: #0c1017;
    --origami-btn-text: #ffffff;
    --origami-sheen: linear-gradient(115deg, transparent 52%, rgba(255, 255, 255, 0.22) 52.1%, rgba(255, 255, 255, 0.08) 100%);
}

/* 2. AUTH CARD ENHANCEMENTS IN CAMPUS STAGE */
.campus-stage-wrap .auth-card-wrap {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardSlideRight 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes cardSlideRight {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   CLEAN BEHANCE CARD & BOTTOM BORDER STRADDLE BUTTON (Screenshots 2.36 & 2.34)
   ========================================================================== */

/* Stage */
.behance-card-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
    padding: 30px 16px 52px;
}

/* THE CLEAN LOGIN CARD (Inspired by Screenshot 2.36.44 PM & 2.34.00 PM) */
.auth-card.clean-behance-card {
    position: relative;
    width: 340px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.36),
                0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 24px 28px 46px 28px; /* Extra bottom padding for button straddle */
    overflow: visible !important; /* CRITICAL: Allows button & side-tab to overhang! */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 15;
}

/* Attached Side Portal Selector Tab (Joined to card's right border with zero overlap) */
.clean-behance-card .side-dock-widget {
    position: absolute;
    top: 28px;
    left: 100%; /* Sits completely outside the card, docked to right edge */
    width: 135px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.clean-behance-card .portal-trigger-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    background: #092038;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: none; /* Seamlessly joins to the card border */
    border-radius: 0 9999px 9999px 0;
    box-shadow: 4px 6px 18px rgba(9, 32, 56, 0.35);
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    outline: none;
    transition: all 0.22s ease;
}
.clean-behance-card .portal-trigger-tab:hover {
    background: #04101e;
    transform: translateX(2px);
    box-shadow: 6px 10px 22px rgba(9, 32, 56, 0.45);
}
.clean-behance-card .side-dock-widget.is-open .portal-trigger-tab {
    border-radius: 0 12px 0 0;
}
.clean-behance-card .trigger-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}
.clean-behance-card .trigger-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.clean-behance-card .trigger-chevron {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.clean-behance-card .side-dock-widget.is-open .trigger-chevron {
    transform: rotate(90deg);
}
.clean-behance-card .portal-flyout-panel {
    display: none;
    margin-top: 0;
    width: 165px;
    background: #092038;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: none;
    border-radius: 0 12px 12px 12px;
    padding: 6px;
    box-shadow: 4px 16px 36px rgba(0, 0, 0, 0.5);
}
.clean-behance-card .side-dock-widget.is-open .portal-flyout-panel {
    display: block;
    animation: flyoutSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes flyoutSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.clean-behance-card .portal-compact-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.clean-behance-card .compact-role-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.18s ease;
}
.clean-behance-card .compact-role-item:hover,
.clean-behance-card .compact-role-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.clean-behance-card .compact-role-item.active {
    border: 1px solid rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   CAMPUS HERO STAGE: LEFT HERO (BUTTONS + BIG ART) & RIGHT STANDALONE GLASS CARD
   Ultra-transparent frosted liquid glass, big floating illustration & side dock
   ========================================================================== */
.campus-layout-stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* 1. LEFT HERO SIDE: 3 PORTAL BUTTONS & BIG FLOATING ILLUSTRATION */
.campus-left-hero-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
    min-width: 0;
}

/* 3 Portal Buttons on Left Side (Outside Card) */
.portal-external-dock {
    flex-shrink: 0;
}
.portal-external-dock .portal-tab-stack {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 205px;
}
.portal-tab-card.portal-glass-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 9999px !important;
    text-decoration: none;
    color: #ffffff !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    overflow: hidden;
}
.portal-tab-card.portal-glass-btn:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2) !important;
}
.portal-tab-card.portal-glass-btn.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #1e3a8a !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
    transform: translateY(-1px);
}
.portal-tab-card.portal-glass-btn.active .tab-card-title {
    color: #1e3a8a !important;
    text-shadow: none !important;
}
.portal-tab-card.portal-glass-btn.active .tab-card-sub {
    color: #475569 !important;
}
.portal-tab-card.portal-glass-btn.active .tab-card-icon {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #1e3a8a !important;
}
.portal-tab-card.portal-glass-btn .tab-card-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.portal-tab-card.portal-glass-btn .tab-card-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}
.portal-tab-card.portal-glass-btn .tab-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.tab-card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.tab-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 10px #3b82f6;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   CORNER FROSTED GLASS MENU BUTTON & BUTTERY SMOOTH TRANSPARENT MENU
   ========================================================================== */

/* Corner Bar (Replaces Staff & Administration text in top-left corner) */
.art-pane-corner-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0 0 6px !important;
    margin-bottom: 14px !important;
    z-index: 10;
}

/* Sleek High-End Frosted Glass Pill Menu Button */
.corner-menu-glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), inset 0 1px 1.5px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

.corner-menu-glass-pill:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.65) !important;
}

.corner-menu-glass-pill:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Role-specific hover accents for Corner Menu Pill */
.role-mode-admin .corner-menu-glass-pill:hover {
    border-color: #ff758f !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}
.role-mode-student .corner-menu-glass-pill:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}
.role-mode-parent .corner-menu-glass-pill:hover {
    border-color: #6ee7b7 !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}

/* Corner Menu Icon with Morphing Hamburger to Close Cross */
.corner-menu-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.corner-menu-icon .icon-hamburger,
.corner-menu-icon .icon-close {
    position: absolute;
    inset: 0;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.corner-menu-icon .icon-hamburger {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.corner-menu-icon .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.corner-menu-label {
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* When Menu is Active */
.art-pane-menu-open .corner-menu-glass-pill {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.art-pane-menu-open .corner-menu-icon .icon-hamburger {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.art-pane-menu-open .corner-menu-icon .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* School Center Logo in Right Pane (Centered Cleanly) */
.glass-stage-login-pane .card-top-school-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 4px 0;
}

/* Card View Panels */
.card-view-panel {
    width: 100%;
}

/* ==========================================================================
   CONTENT STAGE INSIDE ART PANE (BUTTERY SMOOTH CROSSFADE - "MAKHAN KE JESE")
   ========================================================================== */
.art-pane-content-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-view-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Default Artwork View (Centered Cleanly) */
.art-illustration-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
    justify-content: center !important;
}

/* Pure Crystal Transparent Menu View */
.art-transparent-menu-view {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 1;
    justify-content: center !important;
    padding: 2px 0;
}

/* Silky Smooth State Switch ("makhan ke jese") */
.art-pane-menu-open .art-illustration-view {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    z-index: 1;
}

.art-pane-menu-open .art-transparent-menu-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

/* Fresh Cascade Stagger Animation ("AK AK KARKE SHOW HO NEW ANIMATION KE SATH") */
@keyframes transItemCascadeEnter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.92);
        filter: blur(4px);
    }
    65% {
        opacity: 0.95;
        transform: translateY(-2px) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.art-pane-menu-open .trans-menu-item {
    animation: transItemCascadeEnter 0.40s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.art-pane-menu-open .trans-menu-item:nth-child(1) {
    animation-delay: 0.04s;
}
.art-pane-menu-open .trans-menu-item:nth-child(2) {
    animation-delay: 0.11s;
}
.art-pane-menu-open .trans-menu-item:nth-child(3) {
    animation-delay: 0.18s;
}
.art-pane-menu-open .trans-menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

.art-pane-menu-open .transparent-menu-kicker {
    animation: transItemCascadeEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.02s;
}

.no-anim,
.no-anim .art-view-pane,
.no-anim .corner-menu-glass-pill,
.no-anim .corner-menu-icon svg,
.no-anim .trans-menu-item,
.no-anim .transparent-menu-kicker {
    transition: none !important;
    animation: none !important;
}

/* ==========================================================================
   100% PURE CRYSTAL TRANSPARENT MENU TILES (COMPACT REDUCED WIDTH)
   ========================================================================== */
.transparent-menu-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 7px;
}

.transparent-menu-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2px;
}
.transparent-menu-kicker .kicker-sparkle {
    font-size: 9px;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}
.transparent-menu-kicker .kicker-text {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Narrower / Compact Menu Width ("THODE WITRTH KAM KARO ALL MENU KI") */
.transparent-menu-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 248px !important;
    max-width: 88% !important;
    margin: 0 auto !important;
}

/* Individual Light Glass Tile ("MENU KE BACKGROUND MAI GLASS HALKA RAKHO KYOKI WO PEHELE HEE GLASS CARD PAR HAI") */
.trans-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8.5px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    
    /* VERY LIGHT, SUBTLE GLASS TINT */
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
    
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    overflow: hidden;
}

/* Delicate Specular Curved Highlight */
.trans-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Glowing Icon Orb */
.trans-item-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: all 0.24s ease;
}

/* Titles & Subtitles */
.trans-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.trans-item-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trans-item-sub {
    font-size: 9.8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88) !important;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Indicators */
.trans-item-arrow {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.24s ease, color 0.24s ease;
    flex-shrink: 0;
}

.trans-item-active-tag {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2.5px 7.5px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.40);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* Hover States (Delicate Glow) */
.trans-menu-item:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.36) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.40) !important;
    transform: translateX(3px);
}

.trans-menu-item:hover .trans-item-arrow {
    transform: translateX(2px);
    color: #ffffff;
}

.trans-menu-item:hover .trans-item-orb {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
}

.trans-menu-item.item-website:hover .trans-item-orb {
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
    border-color: #c084fc;
}
.trans-menu-item.item-admin:hover .trans-item-orb {
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
    border-color: #f87171;
}
.trans-menu-item.item-student:hover .trans-item-orb {
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
    border-color: #60a5fa;
}
.trans-menu-item.item-parent:hover .trans-item-orb {
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
    border-color: #34d399;
}

/* Active Portal Tile */
.trans-menu-item.is-active {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
}
.trans-menu-item.is-active .trans-item-orb {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   ONE SINGLE UNIFIED PRO GLASS STAGE (ROCK-SOLID ZERO JITTER - LOCKED 680x480)
   ULTRA-SLIM PATLA REFINED GLASS & GENTLE SPECULAR SHINE ("GLASS PATLA, THODA SINE")
   ========================================================================== */
.unified-pro-glass-stage {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 680px !important;
    max-width: 92vw !important;
    min-height: 480px !important;
    height: 480px !important;
    max-height: 480px !important;
    
    /* SYMMETRIC SLEEK GLASS CORNERS */
    border-radius: 26px !important;
    
    /* ULTRA TRANSPARENT & CRYSTAL CLEAR (LIGHT SHINES THROUGH NATURALLY) */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(15px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
    
    /* ULTRA THIN, DELICATE RAZOR-SHARP GLASS RIM ("OUTBORDER PATLA & SINE") */
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 
        0 24px 60px -12px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.32) !important;
    
    overflow: hidden !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease !important;
    margin: 0 auto;
}

/* Radiant Ambient Aura Behind the Glass Card */
.campus-stage-wrap {
    position: relative;
}
.campus-stage-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 520px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10) 0%, rgba(56, 189, 248, 0.06) 35%, transparent 70%);
    filter: blur(45px);
    z-index: -1;
    pointer-events: none;
    border-radius: 36px;
}

/* No thick bulky top beam */
.unified-pro-glass-stage::before {
    display: none !important;
}

/* Elegant Subtle Surface Reflection Sheen across the Glass ("THODA SHINE") */
.unified-pro-glass-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.04) 28%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

.unified-pro-glass-stage:hover {
    transform: translateY(-2px) scale(1.004);
    border-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow: 
        0 30px 75px -10px rgba(0, 0, 0, 0.40),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.45) !important;
}

/* Role-specific Ambient Glows on Campus Stage */
.role-mode-admin.campus-stage-wrap::before {
    background: radial-gradient(circle at 50% 45%, rgba(239, 68, 68, 0.14) 0%, rgba(185, 28, 28, 0.05) 50%, transparent 75%);
}
.role-mode-student.campus-stage-wrap::before {
    background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 75%);
}
.role-mode-parent.campus-stage-wrap::before {
    background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.05) 50%, transparent 75%);
}

/* Left Pane Inside Glass Card: Strictly 330px, Zero Movement */
.glass-stage-art-pane {
    flex: 0 0 330px !important;
    width: 330px !important;
    max-width: 330px !important;
    height: 100% !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 14px 14px 18px;
    background: transparent !important;
    position: relative;
    z-index: 2;
    overflow: hidden !important;
}

/* Ultra-Slim 1px Hairline Glass Divider ("PATLA GLASS") */
.glass-stage-divider {
    width: 1px !important;
    align-self: stretch;
    margin: 22px 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.22) 15%, rgba(255, 255, 255, 0.22) 85%, transparent 100%) !important;
    box-shadow: none !important;
    border: none !important;
    flex-shrink: 0;
    z-index: 2;
}



/* Right Pane Inside Glass Card: Strictly 349px, Permanent Login Form */
.glass-stage-login-pane {
    flex: 0 0 349px !important;
    width: 349px !important;
    max-width: 349px !important;
    height: 100% !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    padding: 24px 26px 16px 26px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative;
    z-index: 2;
    border-radius: 0 !important;
}

/* Center Artwork Frame */
.hero-glass-img-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 8px 4px;
    z-index: 2;
}
.role-big-hero-img {
    width: 235px;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}
.unified-pro-glass-stage:hover .role-big-hero-img {
    transform: scale(1.04) translateY(-3px);
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.42));
}

/* Bottom Micro-Info Footer */
.hero-glass-pod-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding-top: 2px;
}
.hero-pod-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pod-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: podDotPulse 2s infinite ease-in-out;
}
@keyframes podDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.75); opacity: 0.5; }
}
.hero-pod-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* Compact School Center Logo Above LOGIN */
.card-top-school-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 4px 0;
    background: transparent !important;
}
.school-center-logo-img {
    width: 95px !important;
    height: 95px !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.38));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.school-center-logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

/* Heading & Labels */
.glass-login-heading {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2.2px;
    color: #ffffff;
    text-align: center;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Footer Copyright Pushed Lower Down with More Breathing Room */
.auth-page-copyright {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    font-weight: 500;
    margin-top: 38px !important;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 10;
}
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Center Artwork Frame */
.hero-glass-img-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 12px 6px;
    z-index: 2;
}
.role-big-hero-img {
    width: 275px;
    max-width: 100%;
    height: auto;
    max-height: 265px;
    object-fit: contain;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.35));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}
.unified-pro-glass-stage:hover .role-big-hero-img {
    transform: scale(1.04) translateY(-3px);
    filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.42));
}

/* Bottom Micro-Info Footer */
.hero-glass-pod-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding-top: 4px;
}
.hero-pod-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pod-live-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: podDotPulse 2s infinite ease-in-out;
}
@keyframes podDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.75); opacity: 0.5; }
}
.hero-pod-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 270px;
}

/* Top School Crest Logo Above LOGIN */
.card-top-school-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 4px 0 !important;
    background: transparent !important;
}
.school-center-logo-img {
    width: 82px !important;
    height: 82px !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.38));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.school-center-logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

/* Balanced Vertical Position ("THODA NICHE KARO BAS YEH USER NAME PASSWORD...") */
.glass-login-heading {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.08em !important;
    text-align: center;
    margin: 0 0 14px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}
.glass-field-label {
    display: block;
    font-size: 11px !important;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5.5px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Transparent Pill Form Inputs - Slim Refined Borders ("GLASS PATLA") */
.clean-behance-card .form-group-line {
    position: relative;
    margin-bottom: 14px !important;
}
.clean-behance-card .input-line-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 9999px !important;
    height: 42px !important;
    padding: 0 18px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.20) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}
.clean-behance-card .input-line-wrap:focus-within {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
}
.clean-behance-card .input-line-icon {
    display: none !important;
}

/* ELIMINATE SQUARE BROWSER / ROLE FOCUS BOX ON INPUTS */
.clean-behance-card .auth-field input,
.clean-behance-card .clean-line-input,
.clean-behance-card input[type="text"],
.clean-behance-card input[type="password"],
.clean-behance-card input[type="email"],
body.auth .clean-behance-card input:focus,
body.auth .clean-behance-card input:focus-visible,
.clean-behance-card .clean-line-input:focus,
.clean-behance-card .clean-line-input:focus-visible {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
    padding: 6px 2px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    border-radius: 9999px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}
.clean-behance-card .clean-line-input::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 400 !important;
}
.clean-behance-card .pass-eye-toggle {
    position: relative !important;
    right: auto !important;
    background: none !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s ease;
    flex-shrink: 0;
    outline: none !important;
}
.clean-behance-card .pass-eye-toggle:hover {
    color: #ffffff !important;
}

/* Remember Me & Forgot Password */
.clean-behance-card .meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    margin-top: 2px !important;
    margin-bottom: 16px !important;
}
.clean-behance-card .remember-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    cursor: pointer;
    user-select: none;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}
.clean-behance-card .remember-box input {
    accent-color: #2563eb !important;
    width: 13.5px;
    height: 13.5px;
    border-radius: 3px;
    cursor: pointer;
    outline: none !important;
}
.clean-behance-card .forgot-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
    transition: color 0.2s ease;
}
.clean-behance-card .forgot-link:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   BUTTON DESIGN: CENTERED & PURE WHITE / BLACK CONTRAST HOVER IN ALL 3 PORTALS
   ("LOGIN BUTTON BICH MAI KARO AND BHAI HOVER COLOUR WHITE AND BLACK TINO PORTAL MAI")
   ========================================================================== */
.auth-submit-row-center,
.auth-submit-row-right {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 2px !important;
}

body.auth .clean-behance-card .btn-border-straddle,
body.auth .clean-behance-card .btn-auth-submit.btn-border-straddle,
.clean-behance-card .btn-border-straddle {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    min-width: 135px !important;
    padding: 0 32px !important;
    height: 40px !important;
    margin: 0 auto !important;
    
    /* PURE FROSTED GLASS PILL */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 9999px !important;
    
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 25 !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Ensure Text "LOGIN" is 100% Bold, Sharp and Fully Visible */
.clean-behance-card .btn-border-straddle span {
    position: relative !important;
    z-index: 5 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block !important;
}

/* Base Side Fill Layer: glides smoothly from left to right on hover with Pure White */
.clean-behance-card .btn-border-straddle::before,
.role-mode-admin .clean-behance-card .btn-border-straddle::before,
.role-mode-student .clean-behance-card .btn-border-straddle::before,
.role-mode-parent .clean-behance-card .btn-border-straddle::before,
.campus-stage-wrap:not(.role-mode-admin):not(.role-mode-student):not(.role-mode-parent) .clean-behance-card .btn-border-straddle::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    transform: translateX(-101%) !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* HOVER IN ALL THREE PORTALS: PURE WHITE BACKGROUND & JET BLACK TEXT */
.clean-behance-card .btn-border-straddle:hover::before,
.clean-behance-card .btn-border-straddle.is-hovered::before,
.role-mode-admin .clean-behance-card .btn-border-straddle:hover::before,
.role-mode-admin .clean-behance-card .btn-border-straddle.is-hovered::before,
.role-mode-student .clean-behance-card .btn-border-straddle:hover::before,
.role-mode-student .clean-behance-card .btn-border-straddle.is-hovered::before,
.role-mode-parent .clean-behance-card .btn-border-straddle:hover::before,
.role-mode-parent .clean-behance-card .btn-border-straddle.is-hovered::before {
    background: #ffffff !important;
    transform: translateX(0) !important;
}

.clean-behance-card .btn-border-straddle:hover,
.clean-behance-card .btn-border-straddle.is-hovered,
.role-mode-admin .clean-behance-card .btn-border-straddle:hover,
.role-mode-admin .clean-behance-card .btn-border-straddle.is-hovered,
.role-mode-student .clean-behance-card .btn-border-straddle:hover,
.role-mode-student .clean-behance-card .btn-border-straddle.is-hovered,
.role-mode-parent .clean-behance-card .btn-border-straddle:hover,
.role-mode-parent .clean-behance-card .btn-border-straddle.is-hovered {
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.80), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.clean-behance-card .btn-border-straddle:hover span,
.clean-behance-card .btn-border-straddle.is-hovered span,
.role-mode-admin .clean-behance-card .btn-border-straddle:hover span,
.role-mode-admin .clean-behance-card .btn-border-straddle.is-hovered span,
.role-mode-student .clean-behance-card .btn-border-straddle:hover span,
.role-mode-student .clean-behance-card .btn-border-straddle.is-hovered span,
.role-mode-parent .clean-behance-card .btn-border-straddle:hover span,
.role-mode-parent .clean-behance-card .btn-border-straddle.is-hovered span {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

.clean-behance-card .btn-border-straddle:active {
    transform: translateY(0) scale(0.99) !important;
}



/* Support Hint Inside Card (Matching User Screenshot "Dont have an account?") */
.footer-support-hint {
    margin-top: 14px;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.footer-support-hint a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

/* Responsive Design for Campus Hero Stage */
@media (max-width: 1080px) {
    .campus-layout-stage {
        gap: 20px !important;
    }
    .unified-pro-glass-stage {
        width: 680px !important;
    }
    .role-big-hero-img {
        width: 240px !important;
        max-height: 230px !important;
    }
}

@media (max-width: 960px) {
    .campus-layout-stage {
        flex-direction: column !important;
        gap: 24px !important;
        max-width: 420px !important;
    }
    .portal-external-dock .portal-tab-stack {
        flex-direction: row !important;
        width: 100% !important;
        max-width: 380px !important;
        gap: 8px !important;
    }
    .portal-tab-card.portal-glass-btn {
        flex: 1 !important;
        padding: 9px 8px !important;
    }
    .portal-tab-card.portal-glass-btn .tab-card-sub {
        display: none !important;
    }
    .unified-pro-glass-stage {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 380px !important;
        min-height: auto !important;
        border-radius: 44px 18px 44px 18px !important;
    }
    .glass-stage-divider {
        width: 80% !important;
        height: 1px !important;
        margin: 12px auto !important;
    }
    .glass-stage-art-pane {
        padding: 22px 18px 16px 18px !important;
    }
    .glass-stage-login-pane {
        padding: 16px 20px 22px 20px !important;
    }
    .role-big-hero-img {
        width: 220px !important;
        max-height: 200px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .behance-card-stage {
        flex-direction: column;
        padding: 24px 12px 48px;
    }
    .clean-behance-card .side-dock-widget {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 280px;
        margin: -4px auto 14px;
        align-items: center;
    }
    .clean-behance-card .portal-trigger-tab {
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        padding: 0 14px;
    }
    .clean-behance-card .portal-flyout-panel {
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        margin-top: 6px;
        width: 100%;
    }
    .auth-card.clean-behance-card {
        width: 100%;
        max-width: 330px;
        padding: 20px 22px 42px 22px;
    }
}

/* 3. FORGOT PASSWORD REDESIGN ("esko apne heesab se design karo") */
.campus-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 14px;
}
.campus-forgot-pill {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    padding: 4.5px 11px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.forgot-pill-icon {
    color: #64748b;
    transition: transform 0.24s ease, color 0.2s ease;
}
.forgot-pill-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.role-mode-admin .campus-forgot-pill:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}
.role-mode-admin .campus-forgot-pill:hover .forgot-pill-icon {
    color: #dc2626;
    transform: rotate(-18deg);
}

.role-mode-student .campus-forgot-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.role-mode-student .campus-forgot-pill:hover .forgot-pill-icon {
    color: #2563eb;
    transform: rotate(-18deg);
}

.role-mode-parent .campus-forgot-pill:hover {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #059669;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}
.role-mode-parent .campus-forgot-pill:hover .forgot-pill-icon {
    color: #059669;
    transform: rotate(-18deg);
}

.campus-forgot-pill:hover .forgot-pill-arrow {
    transform: translate(2px, -1px);
}

/* 4. ROLE SPECIFIC SUBMIT BUTTONS */
.btn-campus-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border-radius: 9px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
body.auth .btn-auth-submit.btn-submit-admin {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35) !important;
}
body.auth .btn-auth-submit.btn-submit-admin:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
    transform: translateY(-1.5px);
}
body.auth .btn-auth-submit.btn-submit-student {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
}
body.auth .btn-auth-submit.btn-submit-student:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: translateY(-1.5px);
}
body.auth .btn-auth-submit.btn-submit-parent {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35) !important;
}
body.auth .btn-auth-submit.btn-submit-parent:hover {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
    transform: translateY(-1.5px);
}

/* Role-specific Input Focus & Accent Colors (Excluded from Clean Behance Glass Card) */
:not(.clean-behance-card) > .role-mode-admin .auth-field input:focus,
.campus-stage-wrap:not(.role-mode-admin) .auth-field input:focus {
    border-color: #dc2626;
}
.role-mode-admin .remember-label input[type="checkbox"] {
    accent-color: #2563eb !important;
}

.role-mode-student .remember-label input[type="checkbox"] {
    accent-color: #2563eb !important;
}

.role-mode-parent .remember-label input[type="checkbox"] {
    accent-color: #059669 !important;
}
.btn-campus-submit:active {
    transform: translateY(0);
}
.submit-arrow-icon {
    transition: transform 0.22s ease;
}
.btn-campus-submit:hover .submit-arrow-icon {
    transform: translateX(3px);
}

/* 5. RESPONSIVE DESIGN (TABLETS & PHONES) */
@media (max-width: 820px) {
    .campus-stage-wrap {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        max-width: 410px !important;
    }
    .unified-trio-stage {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 340px !important;
        border-radius: 24px !important;
        border: none !important;
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.40) !important;
    }
    .trio-left-water-wing {
        width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        padding: 16px !important;
    }
    .trio-left-water-wing .school-pure-logo-img {
        width: 64px !important;
        height: 64px !important;
    }
    .trio-center-card {
        width: 100% !important;
    }
    .trio-center-card .clean-behance-card {
        width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 18px 20px 44px 20px !important;
    }
    .trio-right-portal-wing {
        width: 100% !important;
        border-radius: 0 0 24px 24px !important;
        border: none !important;
        padding: 24px 14px 16px !important; /* Space for the straddle button */
    }
    .portal-tab-stack {
        flex-direction: row !important;
        gap: 8px !important;
    }
    .portal-tab-card.portal-glass-btn {
        flex: 1 !important;
        padding: 9px 8px !important;
        gap: 7px !important;
    }
    .portal-tab-card.portal-glass-btn .tab-card-sub {
        display: none !important;
    }
    .portal-tab-card {
        flex: 1 !important;
        padding: 8px 6px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 4px !important;
    }
    .tab-card-icon {
        width: 24px !important;
        height: 24px !important;
    }
    .tab-card-text {
        text-align: center !important;
    }
    .tab-card-title {
        font-size: 10.5px !important;
    }
    .tab-card-sub,
    .tab-active-dot {
        display: none !important;
    }
}
/* Campus Heritage: compact glass card with attached browser-style portal tabs. */
body.auth.layout-campus-photo .campus-login-shell {
    width:min(600px,calc(100vw - 32px));
    max-width:100%;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.28);
    border-radius:22px;
    background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.025) 55%,rgba(255,255,255,.065));
    backdrop-filter:blur(15px) saturate(150%);
    -webkit-backdrop-filter:blur(15px) saturate(150%);
    box-shadow:0 24px 60px -12px rgba(0,0,0,.35),inset 0 1px 1px rgba(255,255,255,.32);
}
body.auth.layout-campus-photo .campus-portal-tabs {
    display:flex;
    gap:8px;
    padding:8px 10px 0;
    background:rgba(15,23,42,.16);
    isolation:isolate;
}
body.auth.layout-campus-photo .campus-portal-tab {
    position:relative;
    display:flex;
    flex:1 1 0;
    min-width:0;
    min-height:56px;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:10px 8px;
    border-radius:14px 14px 0 0;
    color:rgba(255,255,255,.82);
    text-decoration:none;
    text-shadow:0 1px 4px rgba(0,0,0,.3);
    transition:background .18s ease,color .18s ease;
}
body.auth.layout-campus-photo .campus-portal-tab:hover { background:rgba(255,255,255,.07); color:#fff; }
body.auth.layout-campus-photo .campus-portal-tab.is-active { background:rgba(255,255,255,.15); color:#fff; z-index:1; }
body.auth.layout-campus-photo .campus-portal-tab.is-active::before,
body.auth.layout-campus-photo .campus-portal-tab.is-active::after {
    content:"";
    position:absolute;
    bottom:0;
    width:10px;
    height:10px;
    pointer-events:none;
}
body.auth.layout-campus-photo .campus-portal-tab.is-active::before {
    left:-10px;
    background:radial-gradient(circle at 0 0,transparent 9.5px,rgba(255,255,255,.15) 10px);
}
body.auth.layout-campus-photo .campus-portal-tab.is-active::after {
    right:-10px;
    background:radial-gradient(circle at 100% 0,transparent 9.5px,rgba(255,255,255,.15) 10px);
}
body.auth.layout-campus-photo .campus-portal-tab:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
body.auth.layout-campus-photo .campus-tab-icon { flex-shrink:0; }
body.auth.layout-campus-photo .campus-tab-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
body.auth.layout-campus-photo .campus-tab-title { font-size:12px; font-weight:700; line-height:1.3; white-space:nowrap; }
body.auth.layout-campus-photo .campus-tab-subtitle { font-size:10px; line-height:1.3; opacity:.8; white-space:nowrap; }
body.auth.layout-campus-photo .unified-pro-glass-stage {
    width:100% !important; max-width:100% !important; height:auto !important; min-height:400px !important; max-height:none !important;
    border:0 !important; border-radius:0 !important;
    background:transparent !important;
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
    box-shadow:none !important;
}
body.auth.layout-campus-photo .unified-pro-glass-stage::after { display:none; }
body.auth.layout-campus-photo .unified-pro-glass-stage:hover { transform:none; }
body.auth.layout-campus-photo .glass-stage-art-pane {
    flex:0 0 270px !important; width:270px !important; max-width:270px !important;
    height:auto !important; align-self:stretch; padding:8px !important;
}
body.auth.layout-campus-photo .glass-stage-login-pane {
    flex:1 1 0 !important; width:auto !important; max-width:none !important; height:auto !important;
    padding:22px 24px !important;
}
body.auth.layout-campus-photo .school-center-logo-img { width:72px !important; height:72px !important; }
body.auth.layout-campus-photo .glass-login-heading { font-size:18px !important; margin-bottom:12px !important; }
body.auth.layout-campus-photo .hero-glass-img-frame { padding:0; }
body.auth.layout-campus-photo .role-big-hero-img { width:250px !important; max-height:240px !important; }
body.auth.layout-campus-photo .clean-behance-card .form-group-line { margin-bottom:24px !important; }
body.auth.layout-campus-photo .auth-submit-row-center { margin-top:28px !important; }
body.auth.layout-campus-photo .campus-stage-wrap::before { max-width:100vw; }
body.auth.layout-campus-photo .art-pane-content-stage { min-height:180px; }
@media(max-width:960px) {
    body.auth.layout-campus-photo > .auth-container { padding:76px 16px 32px; }
    body.auth.layout-campus-photo .campus-login-shell { width:min(340px,calc(100vw - 32px)); }
    body.auth.layout-campus-photo .campus-portal-tabs { gap:6px; padding:8px 8px 0; }
    body.auth.layout-campus-photo .campus-portal-tab { min-height:54px; padding:10px 3px; }
    body.auth.layout-campus-photo .campus-tab-icon { display:none; }
    body.auth.layout-campus-photo .campus-tab-copy { text-align:center; }
    body.auth.layout-campus-photo .campus-tab-title { font-size:10.5px; }
    body.auth.layout-campus-photo .campus-tab-subtitle { font-size:8.5px; }
    body.auth.layout-campus-photo .unified-pro-glass-stage { min-height:0 !important; }
    body.auth.layout-campus-photo .glass-stage-art-pane {
        flex:0 0 166px !important; width:100% !important; max-width:100% !important;
        padding:12px 20px 0 !important;
    }
    body.auth.layout-campus-photo .art-pane-content-stage { min-height:154px; }
    body.auth.layout-campus-photo .role-big-hero-img { width:180px !important; max-height:148px !important; }
    body.auth.layout-campus-photo .glass-stage-divider { margin:6px auto !important; }
    body.auth.layout-campus-photo .glass-stage-login-pane { flex:0 0 auto !important; width:100% !important; padding:12px 24px 24px !important; }
    body.auth.layout-campus-photo .school-center-logo-img { width:60px !important; height:60px !important; }
}

/* School APK access stays inside the sign-in form rather than becoming a body flex item. */
body.auth .school-app-download { margin:12px 0 0; text-align:center; }
body.auth .school-app-download a { display:inline-flex; align-items:center; justify-content:center; gap:7px; max-width:100%; padding:5px 10px; border:1px solid currentColor; border-radius:999px; color:var(--accent); font:600 11px/1.5 var(--font-stack); text-decoration:none; transition:opacity .18s, background-color .18s; }
body.auth .school-app-download a:hover { background-color:color-mix(in srgb,var(--accent) 7%,transparent); }
body.auth .school-app-download a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
body.auth .school-app-download svg { flex:0 0 14px; }
