/* ═══════════════════════════════════════════════════════════════
   CASSUPPORT LOGIN — Prismatic Noir Observatory
   Aesthetic: Deep space command center with holographic accents
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@200;300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
    --pri: #7C3AFF;
    --pri-dark: #6420E8;
    --pri-deep: #4C1D95;
    --pri-light: #A78BFA;
    --pri-glow: #C4B5FD;
    --cyan: #22D3EE;
    --cyan-dim: rgba(34, 211, 238, 0.5);
    --amber: #F59E0B;
    --rose: #F43F5E;
    --base: #06020F;
    --surface: #0C0620;
    --surface-2: #140B30;
    --card-bg: rgba(14, 8, 36, 0.72);
    --card-bg-hover: rgba(18, 10, 44, 0.78);
    --txt: #F8FAFC;
    --txt-2: rgba(248, 250, 252, 0.72);
    --txt-3: rgba(248, 250, 252, 0.40);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hi: rgba(255, 255, 255, 0.12);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body.login-page {
    font-family: var(--font-body);
    background: var(--base);
    color: var(--txt);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login-page #page-loader { display: none !important; }

/* ═══ BACKGROUND SYSTEM ═══ */

/* Layer 1: Base image */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-bg__image {
    position: absolute;
    inset: 0;
    background: url('../img/login-bg/otoño.jpg') center/cover no-repeat;
    filter: brightness(0.18) saturate(0.4) contrast(1.1);
    transform: scale(1.05);
    animation: bgBreath 20s ease-in-out infinite;
}

@keyframes bgBreath {
    0%, 100% { transform: scale(1.05); filter: brightness(0.18) saturate(0.4) contrast(1.1); }
    50% { transform: scale(1.08); filter: brightness(0.22) saturate(0.5) contrast(1.05); }
}

/* Layer 2: Aurora gradient mesh */
.login-bg__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(124, 58, 255, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 80% 120% at 100% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(76, 29, 149, 0.25) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6, 2, 15, 0.95) 0%, rgba(6, 2, 15, 0.5) 50%, rgba(6, 2, 15, 0.92) 100%);
    animation: auroraShift 15s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% {
        background:
            radial-gradient(ellipse 120% 80% at 0% 0%, rgba(124, 58, 255, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 80% 120% at 100% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse 60% 60% at 50% 50%, rgba(76, 29, 149, 0.25) 0%, transparent 60%),
            linear-gradient(180deg, rgba(6, 2, 15, 0.95) 0%, rgba(6, 2, 15, 0.5) 50%, rgba(6, 2, 15, 0.92) 100%);
    }
    100% {
        background:
            radial-gradient(ellipse 100% 100% at 20% 80%, rgba(124, 58, 255, 0.30) 0%, transparent 50%),
            radial-gradient(ellipse 90% 90% at 80% 20%, rgba(34, 211, 238, 0.22) 0%, transparent 50%),
            radial-gradient(ellipse 70% 50% at 60% 60%, rgba(76, 29, 149, 0.20) 0%, transparent 60%),
            linear-gradient(180deg, rgba(6, 2, 15, 0.95) 0%, rgba(6, 2, 15, 0.5) 50%, rgba(6, 2, 15, 0.92) 100%);
    }
}

/* Layer 3: Noise texture */
.login-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

/* ═══ AURORA LIGHT STREAMS ═══ */
.login-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    animation: orbMaterialize 2.5s var(--ease-out-expo) forwards;
    will-change: transform, opacity;
}

.login-orb--1 {
    width: 600px;
    height: 600px;
    background: conic-gradient(from 0deg, rgba(124, 58, 255, 0.45), rgba(34, 211, 238, 0.2), rgba(124, 58, 255, 0.3));
    top: -20%;
    left: -10%;
    animation-delay: 0.2s;
}
.login-orb--1::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: orbDrift1 25s ease-in-out infinite;
}

.login-orb--2 {
    width: 450px;
    height: 450px;
    background: conic-gradient(from 120deg, rgba(34, 211, 238, 0.3), rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.15));
    bottom: -20%;
    right: -5%;
    animation-delay: 0.6s;
}
.login-orb--2::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: orbDrift2 30s ease-in-out infinite;
}

.login-orb--3 {
    width: 350px;
    height: 350px;
    background: conic-gradient(from 240deg, rgba(167, 139, 250, 0.35), rgba(244, 63, 94, 0.1), rgba(124, 58, 255, 0.2));
    top: 35%;
    right: 25%;
    animation-delay: 1s;
}
.login-orb--3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: orbDrift3 20s ease-in-out infinite;
}

@keyframes orbMaterialize {
    from { opacity: 0; transform: scale(0.3) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(80px, 40px) rotate(10deg) scale(1.1); }
    50% { transform: translate(30px, 80px) rotate(-5deg) scale(0.95); }
    75% { transform: translate(-40px, 20px) rotate(8deg) scale(1.05); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-60px, -70px) rotate(-15deg) scale(1.08); }
    66% { transform: translate(40px, -30px) rotate(10deg) scale(0.92); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(50px, -40px) rotate(20deg); }
    40% { transform: translate(80px, 30px) rotate(-10deg); }
    60% { transform: translate(20px, 60px) rotate(15deg); }
    80% { transform: translate(-30px, 20px) rotate(-5deg); }
}

/* ═══ GEOMETRIC PARTICLES — Wireframe Shapes ═══ */
.login-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0;
    animation: particleDrift linear infinite;
}

/* Circles */
.particle:nth-child(1),
.particle:nth-child(4),
.particle:nth-child(7),
.particle:nth-child(10) {
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: transparent;
}

/* Diamonds */
.particle:nth-child(2),
.particle:nth-child(5),
.particle:nth-child(8),
.particle:nth-child(11) {
    border-radius: 2px;
    background: transparent;
    border: 1px solid rgba(34, 211, 238, 0.15);
    transform: rotate(45deg);
}

/* Dots */
.particle:nth-child(3),
.particle:nth-child(6),
.particle:nth-child(9),
.particle:nth-child(12) {
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.25);
}

.particle:nth-child(1)  { width: 12px; height: 12px; left: 8%;  animation-duration: 22s; animation-delay: 0s; }
.particle:nth-child(2)  { width: 8px;  height: 8px;  left: 18%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3)  { width: 4px;  height: 4px;  left: 30%; animation-duration: 15s; animation-delay: 4s; }
.particle:nth-child(4)  { width: 10px; height: 10px; left: 42%; animation-duration: 24s; animation-delay: 1s; }
.particle:nth-child(5)  { width: 6px;  height: 6px;  left: 55%; animation-duration: 20s; animation-delay: 3s; }
.particle:nth-child(6)  { width: 3px;  height: 3px;  left: 65%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7)  { width: 14px; height: 14px; left: 75%; animation-duration: 26s; animation-delay: 7s; }
.particle:nth-child(8)  { width: 7px;  height: 7px;  left: 85%; animation-duration: 19s; animation-delay: 2s; }
.particle:nth-child(9)  { width: 5px;  height: 5px;  left: 12%; animation-duration: 17s; animation-delay: 6s; }
.particle:nth-child(10) { width: 9px;  height: 9px;  left: 92%; animation-duration: 21s; animation-delay: 8s; }
.particle:nth-child(11) { width: 5px;  height: 5px;  left: 48%; animation-duration: 23s; animation-delay: 4s; }
.particle:nth-child(12) { width: 3px;  height: 3px;  left: 38%; animation-duration: 14s; animation-delay: 9s; }

@keyframes particleDrift {
    0% {
        opacity: 0;
        bottom: -5%;
        transform: translateX(0) rotate(0deg);
    }
    8% { opacity: 0.7; }
    50% { opacity: 0.5; }
    92% { opacity: 0.3; }
    100% {
        opacity: 0;
        bottom: 105%;
        transform: translateX(120px) rotate(540deg);
    }
}

/* ═══ GRID — Perspective Lines ═══ */
.login-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: gridFadeIn 4s ease-out 1.5s forwards;
    perspective: 800px;
}

.login-grid::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        linear-gradient(90deg, rgba(124, 58, 255, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(124, 58, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(60deg);
    transform-origin: center 80%;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 80%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 80%, black, transparent);
}

@keyframes gridFadeIn {
    to { opacity: 1; }
}

/* ═══ MAIN STAGE — Split Layout ═══ */
.login-stage {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    z-index: 1;
}

/* ═══ LEFT PANEL — Branding ═══ */
.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px 100px;
    overflow: hidden;
}

/* Ambient glow behind brand panel */
.login-brand::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 255, 0.15) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    filter: blur(60px);
    pointer-events: none;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.login-brand__logo {
    width: 180px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: revealUp 1s var(--ease-out-expo) 0.3s forwards;
    filter: drop-shadow(0 0 20px rgba(124, 58, 255, 0.15));
    transition: filter 0.5s ease;
}

.login-brand__logo:hover {
    filter: drop-shadow(0 0 30px rgba(124, 58, 255, 0.3));
}

/* Status badge */
.login-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.15);
    backdrop-filter: blur(12px);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 32px;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s var(--ease-out-expo) 0.5s forwards;
    transition: all 0.4s ease;
}

.login-brand__badge:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.login-brand__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-dim), 0 0 16px rgba(34, 211, 238, 0.2);
    animation: dotBeacon 2.5s ease-in-out infinite;
}

@keyframes dotBeacon {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan-dim), 0 0 16px rgba(34, 211, 238, 0.2); }
    50% { opacity: 0.4; box-shadow: 0 0 4px var(--cyan-dim), 0 0 8px rgba(34, 211, 238, 0.1); }
}

/* Title */
.login-brand__title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 1.2s var(--ease-out-expo) 0.7s forwards;
}

.login-brand__title span {
    background: linear-gradient(
        135deg,
        var(--pri-light) 0%,
        var(--cyan) 40%,
        var(--pri-glow) 70%,
        var(--cyan) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease-in-out infinite;
}

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

/* Tagline */
.login-brand__tagline {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: var(--txt-2);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s var(--ease-out-expo) 0.9s forwards;
}

/* Typing subtitle */
.login-brand__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--txt-3);
    max-width: 440px;
    margin-bottom: 50px;
    min-height: 54px;
    opacity: 0;
    transform: translateY(25px);
    animation: revealUp 1s var(--ease-out-expo) 1s forwards;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--cyan);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s steps(2) infinite;
    box-shadow: 0 0 6px var(--cyan-dim);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Feature pills */
.login-brand__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(25px);
    animation: revealUp 1s var(--ease-out-expo) 1.2s forwards;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--txt-3);
    cursor: default;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.1), rgba(34, 211, 238, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-pill:hover {
    border-color: rgba(124, 58, 255, 0.25);
    color: var(--txt);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 255, 0.12);
}

.feature-pill:hover::before {
    opacity: 1;
}

.feature-pill i {
    color: var(--pri-light);
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-pill:hover i {
    color: var(--cyan);
}

/* Decorative vertical line */
.login-brand__line {
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    opacity: 0;
    animation: lineReveal 2s ease-out 1.8s forwards;
    overflow: hidden;
}

.login-brand__line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--glass-border) 15%,
        rgba(124, 58, 255, 0.3) 50%,
        var(--glass-border) 85%,
        transparent
    );
}

/* Scanning light effect on the line */
.login-brand__line::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -2px;
    width: 5px;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
    filter: blur(2px);
    animation: scanLine 6s ease-in-out infinite 3s;
}

@keyframes scanLine {
    0%, 100% { top: -30%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes lineReveal {
    to { opacity: 1; }
}

/* ═══ RIGHT PANEL — Form ═══ */
.login-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

/* ── Glass Card — Prismatic Edition ── */
.login-glass-card {
    width: 100%;
    max-width: 460px;
    padding: 52px 46px;
    border-radius: 28px;
    background: var(--card-bg);
    backdrop-filter: blur(60px) saturate(1.6);
    -webkit-backdrop-filter: blur(60px) saturate(1.6);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.94) rotateX(2deg);
    animation: cardReveal 1.2s var(--ease-out-expo) 0.5s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    transform-style: preserve-3d;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(124, 58, 255, 0.06);
}

.login-glass-card:hover {
    background: var(--card-bg-hover);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(124, 58, 255, 0.1);
}

/* Prismatic border — holographic shimmer */
.login-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--shimmer-angle, 0deg) at 50% 50%,
        transparent 0deg,
        rgba(124, 58, 255, 0.4) 60deg,
        rgba(34, 211, 238, 0.3) 120deg,
        rgba(167, 139, 250, 0.3) 180deg,
        rgba(34, 211, 238, 0.2) 240deg,
        rgba(124, 58, 255, 0.3) 300deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: shimmerRotate 8s linear infinite, shimmerPulse 4s ease-in-out 2s infinite;
    pointer-events: none;
}

@keyframes shimmerRotate {
    to { --shimmer-angle: 360deg; }
}

@keyframes shimmerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Inner ambient glow */
.login-glass-card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(124, 58, 255, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Register shimmer angle as CSS property for animation */
@property --shimmer-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ── Card Header ── */
.login-card__header {
    text-align: center;
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
}

.login-card__logo {
    margin: 0 auto 24px;
    text-align: center;
    position: relative;
}

.login-card__logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(124, 58, 255, 0.2));
    transition: filter 0.5s ease, transform 0.5s var(--ease-out-back);
}

.login-card__logo:hover img {
    filter: drop-shadow(0 8px 28px rgba(124, 58, 255, 0.35));
    transform: scale(1.03);
}

/* Glow ring behind logo */
.login-card__logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 255, 0.12) 0%, transparent 70%);
    animation: logoGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.login-card__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--txt);
    letter-spacing: -0.5px;
}

.login-card__desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--txt-3);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Form Fields ── */
.login-field {
    position: relative;
    margin-bottom: 22px;
    z-index: 1;
}

.login-field__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-3);
    font-size: 15px;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 2;
    pointer-events: none;
}

.login-field__input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 50px;
    border-radius: 16px;
    border: 1.5px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--txt);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.login-field__input::placeholder {
    color: var(--txt-3);
    font-weight: 300;
    transition: all 0.3s ease;
}

.login-field__input:focus {
    border-color: var(--pri);
    background: rgba(124, 58, 255, 0.04);
    box-shadow:
        0 0 0 4px rgba(124, 58, 255, 0.08),
        0 0 30px rgba(124, 58, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.login-field__input:focus::placeholder {
    opacity: 0.3;
    transform: translateX(5px);
}

.login-field__input:focus ~ .login-field__icon {
    color: var(--cyan);
    transform: translateY(-50%) scale(1.1);
}

/* Toggle password visibility */
.login-field__toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--txt-3);
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-back);
    outline: none;
}

.login-field__toggle:hover {
    color: var(--pri-light);
    transform: translateY(-50%) scale(1.15);
}

.login-field__toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.login-field__input:focus ~ .login-field__toggle {
    color: var(--cyan);
}

/* Focus glow line */
.login-field__glow {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--pri),
        var(--cyan),
        var(--pri),
        transparent
    );
    border-radius: 2px;
    transition: width 0.5s var(--ease-out-expo);
    z-index: 3;
    filter: blur(0.5px);
}

.login-field__input:focus ~ .login-field__glow {
    width: 85%;
    box-shadow: 0 0 12px rgba(124, 58, 255, 0.3);
}

/* ── Submit Button ── */
.login-submit-wrapper {
    position: relative;
    z-index: 1;
}

.login-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pri) 0%, var(--pri-dark) 50%, #5B21B6 100%);
    background-size: 200% 200%;
    color: white;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    margin-top: 10px;
    box-shadow:
        0 8px 28px rgba(124, 58, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: btnGradient 4s ease-in-out infinite;
}

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

.login-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 14px 40px rgba(124, 58, 255, 0.4),
        0 0 60px rgba(124, 58, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    letter-spacing: 2px;
}

.login-submit:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 16px rgba(124, 58, 255, 0.25);
}

/* Prismatic shine sweep */
.login-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 80%
    );
    transition: left 0.8s var(--ease-out-expo);
}

.login-submit:hover::before {
    left: 120%;
}

/* Top highlight line */
.login-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    opacity: 0.7;
}

/* ── Card Footer ── */
.login-card__footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

/* Glow dot on border */
.login-card__footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pri-light);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
    opacity: 0.6;
}

.login-card__footer-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--txt-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.login-card__footer-text i {
    color: var(--cyan);
    font-size: 12px;
    opacity: 0.7;
}

/* ═══ BOTTOM BAR ═══ */
.login-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(15px);
    animation: revealUp 0.8s var(--ease-out-expo) 2.5s forwards;
}

.login-bottom-bar__left,
.login-bottom-bar__right {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 300;
    color: var(--txt-3);
    letter-spacing: 1px;
}

.login-bottom-bar__right {
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

/* ═══ ANIMATIONS ═══ */
@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form field stagger entrance */
.login-field,
.login-submit-wrapper {
    opacity: 0;
    transform: translateY(25px);
    animation: fieldSlideIn 0.8s var(--ease-out-expo) forwards;
}

.login-field:nth-child(1) { animation-delay: 0.9s; }  /* error div counts */
.login-field:nth-child(2) { animation-delay: 1.05s; }
.login-field:nth-child(3) { animation-delay: 1.2s; }
.login-submit-wrapper { animation-delay: 1.35s; }

@keyframes fieldSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .login-brand {
        padding: 60px 50px;
    }

    .login-brand__title {
        font-size: 44px;
    }
}

@media (max-width: 992px) {
    .login-stage {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }

    .login-brand {
        padding: 50px 40px 25px;
        text-align: center;
        align-items: center;
    }

    .login-brand::before {
        display: none;
    }

    .login-brand__title {
        font-size: 38px;
    }

    .login-brand__tagline {
        margin-bottom: 24px;
    }

    .login-brand__subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        text-align: center;
    }

    .login-brand__features {
        justify-content: center;
    }

    .login-brand__line {
        display: none;
    }

    .login-form-panel {
        padding: 20px 40px 50px;
    }

    .login-glass-card {
        padding: 40px 32px;
    }
}

@media (max-width: 576px) {
    .login-brand {
        padding: 35px 24px 15px;
    }

    .login-brand__logo {
        width: 130px;
        margin-bottom: 30px;
    }

    .login-brand__title {
        font-size: 30px;
    }

    .login-brand__tagline {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .login-brand__subtitle {
        display: none;
    }

    .login-brand__features {
        display: none;
    }

    .login-form-panel {
        padding: 10px 18px 35px;
    }

    .login-glass-card {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .login-card__logo img {
        max-width: 140px;
    }

    .login-card__title {
        font-size: 24px;
    }

    .login-bottom-bar {
        flex-direction: column;
        gap: 6px;
        padding: 14px 24px;
    }
}

/* ═══ OVERRIDES — Base template styles ═══ */
body.login-page .login-cover,
body.login-page .login-cover-image,
body.login-page .login-cover-bg,
body.login-page #page-container > .login,
body.login-page .login-bg-list {
    display: none !important;
}

body.login-page #page-container {
    z-index: auto !important;
    position: static !important;
}

/* Input overrides */
.login-glass-card input.login-field__input {
    height: 56px !important;
    box-shadow: none;
    -webkit-appearance: none;
}

.login-glass-card input.login-field__input:-webkit-autofill,
.login-glass-card input.login-field__input:-webkit-autofill:hover,
.login-glass-card input.login-field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--txt);
    -webkit-box-shadow: 0 0 0 1000px rgba(14, 8, 36, 0.95) inset;
    transition: background-color 9999s ease-in-out 0s;
    border-color: var(--glass-border);
    caret-color: var(--txt);
}

/* Password reveal compatibility */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    filter: invert(1);
}

/* Selection color */
::selection {
    background: rgba(124, 58, 255, 0.4);
    color: white;
}

/* Scrollbar (for mobile overflow) */
.login-stage::-webkit-scrollbar {
    width: 4px;
}
.login-stage::-webkit-scrollbar-track {
    background: transparent;
}
.login-stage::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 255, 0.3);
    border-radius: 4px;
}
