/* ============================================================
   KOSHA - Login Page Styles (GVP Official Theme — 3D Redesign)
   ============================================================ */

/* Scoped to .login-page so dashboard backgrounds aren't overridden */
body.login-page {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #050811 !important;
    color: #F8FAFC;
}

/* SPA auth container — acts as the full-page wrapper */
body.login-page #spa-auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex !important;
    background: #050811;
    position: relative;
}

/* The login wrapper inside spa-auth-container */
.login-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    background: #050811;
    overflow: hidden;
    position: relative;
    perspective: 1200px;
}

.login-page {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #050811;
    overflow: hidden;
    position: relative;
    perspective: 1200px;
}

/* ─── LEFT HERO PANEL ────────────────────────────────────────── */
.login-left {
    width: 50%;
    flex: 1 1 50%;
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 5rem;
    position: relative;
    color: #fff;
    border: none;
    box-sizing: border-box;
    z-index: 3;
}

/* Canvas Particle Layer */
.login-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ─── Animated Gradient Orbs ─────────────────────────────────── */
.login-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    opacity: 0.5;
}
.login-orb-1 {
    width: 500px; height: 500px;
    top: -10%; left: -5%;
    background: radial-gradient(circle, rgba(16, 101, 255, 0.35) 0%, transparent 70%);
    animation: orbDrift1 14s ease-in-out infinite alternate;
}
.login-orb-2 {
    width: 450px; height: 450px;
    bottom: -5%; right: 10%;
    background: radial-gradient(circle, rgba(23, 230, 174, 0.25) 0%, transparent 70%);
    animation: orbDrift2 18s ease-in-out infinite alternate;
}
.login-orb-3 {
    width: 350px; height: 350px;
    top: 35%; left: 45%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: orbDrift3 12s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orbDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes orbDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.2); }
}

/* Subtle Grid Pattern Overlay */
.login-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 90%);
}


/* ═══════════════════════════════════════════════════════════════
   3D FLOATING GEOMETRIC SHAPES
   ═══════════════════════════════════════════════════════════════ */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    perspective: 800px;
}

.shape {
    position: absolute;
    transform-style: preserve-3d;
}

/* ── Rotating 3D Cube ── */
.shape-cube {
    top: 8%;
    right: 12%;
    width: 50px;
    height: 50px;
    animation: floatShape1 20s ease-in-out infinite;
}

.cube {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 18s linear infinite;
}

.cube-face {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1.5px solid rgba(16, 101, 255, 0.2);
    background: rgba(16, 101, 255, 0.04);
    backdrop-filter: blur(2px);
}

.cube-front  { transform: translateZ(25px); }
.cube-back   { transform: rotateY(180deg) translateZ(25px); }
.cube-left   { transform: rotateY(-90deg) translateZ(25px); }
.cube-right  { transform: rotateY(90deg) translateZ(25px); }
.cube-top    { transform: rotateX(90deg) translateZ(25px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0deg)   rotateY(0deg)   rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

/* ── Glowing Ring (Torus silhouette) ── */
.shape-ring {
    bottom: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    border: 2.5px solid rgba(23, 230, 174, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(23, 230, 174, 0.08),
                inset 0 0 20px rgba(23, 230, 174, 0.04);
    animation: floatShape2 16s ease-in-out infinite, spinRing 24s linear infinite;
}

@keyframes spinRing {
    0%   { transform: rotateX(65deg) rotateY(0deg); }
    100% { transform: rotateX(65deg) rotateY(360deg); }
}

/* ── 3D Pyramid ── */
.shape-pyramid {
    top: 55%;
    right: 6%;
    width: 45px;
    height: 45px;
    animation: floatShape3 22s ease-in-out infinite;
}

.pyramid {
    width: 45px;
    height: 45px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePyramid 20s linear infinite;
}

.pyramid-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 22.5px solid transparent;
    border-right: 22.5px solid transparent;
    border-bottom: 40px solid rgba(99, 102, 241, 0.12);
    transform-origin: bottom center;
}

.pyramid-front { transform: rotateX(30deg) translateZ(13px); }
.pyramid-right { transform: rotateY(90deg) rotateX(30deg) translateZ(13px); }
.pyramid-back  { transform: rotateY(180deg) rotateX(30deg) translateZ(13px); }
.pyramid-left  { transform: rotateY(-90deg) rotateX(30deg) translateZ(13px); }

.pyramid-base {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transform: rotateX(90deg) translateZ(0px);
}

@keyframes rotatePyramid {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ── Glowing Sphere ── */
.shape-sphere {
    top: 22%;
    left: 42%;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(251, 191, 36, 0.05) 40%,
        transparent 70%);
    border: 1.5px solid rgba(251, 191, 36, 0.15);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.06),
                inset 0 0 15px rgba(251, 191, 36, 0.04);
    animation: floatShape4 18s ease-in-out infinite, pulseSphere 4s ease-in-out infinite;
}

@keyframes pulseSphere {
    0%, 100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.06); }
    50%      { box-shadow: 0 0 50px rgba(251, 191, 36, 0.12); }
}

/* ── Octahedron (simplified diamond) ── */
.shape-octahedron {
    bottom: 30%;
    right: 22%;
    width: 30px;
    height: 30px;
    animation: floatShape5 15s ease-in-out infinite;
}

.octahedron {
    width: 30px;
    height: 30px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateOctahedron 14s linear infinite;
}

.oct-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}
.oct-1 { border-bottom: 26px solid rgba(16, 101, 255, 0.1); transform: rotateX(19.5deg) translateZ(8px); }
.oct-2 { border-bottom: 26px solid rgba(23, 230, 174, 0.08); transform: rotateY(90deg) rotateX(19.5deg) translateZ(8px); }
.oct-3 { border-top: 26px solid rgba(16, 101, 255, 0.06); transform: rotateX(-19.5deg) translateZ(8px); }
.oct-4 { border-top: 26px solid rgba(23, 230, 174, 0.06); transform: rotateY(90deg) rotateX(-19.5deg) translateZ(8px); }

@keyframes rotateOctahedron {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ── Diamond Crystal ── */
.shape-diamond {
    top: 72%;
    left: 30%;
    width: 24px;
    height: 24px;
    animation: floatShape6 19s ease-in-out infinite;
}

.diamond-inner {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(16, 101, 255, 0.12), rgba(23, 230, 174, 0.12));
    border: 1px solid rgba(16, 101, 255, 0.2);
    transform: rotate(45deg);
    animation: spinDiamond 10s linear infinite;
    box-shadow: 0 0 20px rgba(16, 101, 255, 0.08);
}

@keyframes spinDiamond {
    0%   { transform: rotate(45deg) scale(1); }
    50%  { transform: rotate(225deg) scale(1.15); }
    100% { transform: rotate(405deg) scale(1); }
}

/* Float animations for shapes */
@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-15px, 20px); }
    50%      { transform: translate(10px, -10px); }
    75%      { transform: translate(-20px, -15px); }
}
@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotateX(65deg); }
    33%      { transform: translate(20px, -25px) rotateX(65deg); }
    66%      { transform: translate(-15px, 15px) rotateX(65deg); }
}
@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-20px, -20px); }
    66%      { transform: translate(15px, 10px); }
}
@keyframes floatShape4 {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(20px, 15px); }
    50%      { transform: translate(-10px, 25px); }
    75%      { transform: translate(15px, -10px); }
}
@keyframes floatShape5 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-25px, 20px); }
}
@keyframes floatShape6 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(15px, -20px); }
    66%      { transform: translate(-10px, 15px); }
}


/* ─── Top Bar ────────────────────────────────────────────────── */
/* ─── Top Bar ────────────────────────────────────────────────── */
.login-left-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) drop-shadow(0 0 8px rgba(16, 101, 255, 0.2));
}
.login-logo-img:hover {
    filter: brightness(1.15) drop-shadow(0 0 16px rgba(16, 101, 255, 0.4));
    transform: translateY(-2px) scale(1.02);
}


/* ─── Hero Section ───────────────────────────────────────────── */
.login-left-hero {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    margin-top: auto;
    padding-bottom: 0.75rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-label {
    display: inline-flex; align-items: center; gap: 0.55rem;
    background: rgba(16, 101, 255, 0.1);
    border: 1px solid rgba(23, 230, 174, 0.25);
    padding: 0.35rem 0.9rem; border-radius: 99px;
    font-size: 0.75rem; font-weight: 700; color: #17E6AE;
    letter-spacing: 0.05em; text-transform: uppercase;
    margin: 0 0 1.5rem 0; width: fit-content;
    animation: fadeSlideUp 0.6s ease both;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #17E6AE;
    box-shadow: 0 0 10px #17E6AE;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-bold);
    font-size: 3rem; font-weight: normal;
    letter-spacing: -0.03em; line-height: 1.1;
    margin: 0 0 1.25rem 0; color: #FFFFFF;
    text-align: left;
    animation: fadeSlideUp 0.6s 0.1s ease both;
    text-shadow: 0 2px 30px rgba(16, 101, 255, 0.1);
}

.hero-gradient-text {
    background: linear-gradient(135deg, #1065FF 0%, #17E6AE 60%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 0.95rem; line-height: 1.7;
    color: rgba(248, 250, 252, 0.55); max-width: 480px;
    margin: 0;
    text-align: left;
    animation: fadeSlideUp 0.6s 0.2s ease both;
}


/* ═══════════════════════════════════════════════════════════════
   3D FEATURE CARDS — Grid Format (Centered Container, Left Text)
   ═══════════════════════════════════════════════════════════════ */
.login-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto 2rem auto;
    perspective: 600px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.1rem 0.85rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    animation: fadeSlideUp 0.5s ease both;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

/* 3D card inner glow */
.card-3d-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(16, 101, 255, 0.12) 0%, transparent 60%);
}

.feature-card:hover .card-3d-glow {
    opacity: 1;
}

/* 3D card shine streak */
.card-3d-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%,
        rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    transform: skewX(-15deg);
    pointer-events: none;
    transition: left 0.6s ease;
}
.feature-card:hover .card-3d-shine {
    left: 130%;
}

.feature-card:hover {
    background: rgba(16, 101, 255, 0.08);
    border-color: rgba(16, 101, 255, 0.25);
    transform: translateY(-6px) translateZ(20px) rotateX(2deg);
    box-shadow:
        0 8px 30px rgba(16, 101, 255, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: rgba(23, 230, 174, 0.1);
    color: #17E6AE;
    border: 1px solid rgba(23, 230, 174, 0.15);
    transition: all 0.4s ease;
    transform: translateZ(10px);
}
.feature-card:hover .feature-card-icon {
    background: rgba(23, 230, 174, 0.18);
    box-shadow: 0 0 20px rgba(23, 230, 174, 0.25);
    transform: translateZ(25px) scale(1.05);
}

.feature-card-icon.icon-bolt {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    border-color: rgba(251, 191, 36, 0.15);
}
.feature-card:hover .icon-bolt {
    background: rgba(251, 191, 36, 0.18);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.feature-card-icon.icon-chart {
    background: rgba(99, 102, 241, 0.1);
    color: #818CF8;
    border-color: rgba(99, 102, 241, 0.15);
}
.feature-card:hover .icon-chart {
    background: rgba(99, 102, 241, 0.18);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.feature-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.feature-card-body h4 {
    font-size: 0.84rem; font-weight: 700; color: #F1F5F9;
    margin: 0 0 0.2rem 0;
    text-align: left;
}
.feature-card-body p {
    font-size: 0.74rem; color: rgba(148, 163, 184, 0.85);
    margin: 0; line-height: 1.4;
    text-align: left;
}

/* ─── Bottom Stats Bar ───────────────────────────────────────── */
.login-left-bottom {
    flex-shrink: 0;
    padding-top: 1.5rem;
    margin-bottom: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    animation: fadeSlideUp 0.6s 0.5s ease both;
}

.login-stats-bar {
    display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.login-stat-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; text-align: left;
}
.stat-value {
    font-family: var(--font-bold);
    font-size: 1.35rem; font-weight: normal; color: #FFFFFF;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.7rem; font-weight: 600; color: #64748B;
    text-transform: uppercase; letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px; height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
    flex-shrink: 0;
}

.login-footer-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 6px rgba(16, 101, 255, 0.2));
    vertical-align: middle;
}


/* ─── Entrance Animation ─────────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   RIGHT FORM PANEL — 3D Glassmorphic Login Card
   ═══════════════════════════════════════════════════════════════ */
.login-right {
    width: 50%;
    flex: 1 1 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: transparent;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    border: none;
    perspective: 1000px;
}

/* ── Main 3D Login Card ── */
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 24px;
    border: 1px solid rgba(16, 101, 255, 0.2);
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(16, 101, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2.25rem 2rem;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    animation: cardEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow: hidden;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-8deg) translateZ(-60px) translateX(40px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) translateZ(0) translateX(0);
    }
}

/* 3D ambient light reflection that follows mouse */
.card-3d-ambient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(
        600px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
        rgba(16, 101, 255, 0.08) 0%,
        rgba(23, 230, 174, 0.03) 30%,
        transparent 70%
    );
}

.login-card:hover .card-3d-ambient {
    opacity: 1;
}

/* Animated edge glow */
.card-edge-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        transparent 0%,
        rgba(16, 101, 255, 0.3) 10%,
        rgba(23, 230, 174, 0.2) 20%,
        transparent 30%,
        transparent 70%,
        rgba(99, 102, 241, 0.2) 80%,
        rgba(16, 101, 255, 0.3) 90%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 6s linear infinite;
}

.login-card:hover .card-edge-glow {
    opacity: 1;
}

@keyframes rotateGlow {
    0%   { --glow-angle: 0deg; }
    100% { --glow-angle: 360deg; }
}

/* Conic gradient animation fallback with pseudo element */
.card-edge-glow::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(11, 17, 32, 0.95);
    border-radius: inherit;
}

.login-card-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    text-align: left;
}

.card-header-title {
    font-family: var(--font-bold);
    font-size: 1.35rem;
    font-weight: normal;
    color: #F8FAFC;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.02em;
}

.card-header-subtitle {
    font-size: 0.82rem;
    color: #94A3B8;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

@font-face {
    font-family: 'Ananda Namaste';
    src: local('Ananda Namaste'), local('AnandaNamaste'), local('Ananda-Namaste'), url('../fonts/AnandaNamaste.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.ananda-namaste-font {
    font-family: 'Ananda Namaste', 'Yatra One', 'Rozha One', cursive, serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #1065FF 0%, #17E6AE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Auth Mode Tabs */
.auth-tabs {
    display: flex; background: #050811;
    padding: 4px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.auth-tab-btn {
    flex: 1; padding: 0.65rem;
    border: none; background: none;
    border-radius: 10px; font-size: 0.85rem;
    font-weight: 700; color: #94A3B8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative;
}
.auth-tab-btn.active {
    background: #1065FF; color: #FFFFFF;
    box-shadow: 0 3px 14px rgba(16, 101, 255, 0.45);
    transform: translateY(-1px);
}
.auth-tab-btn:hover:not(.active) {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.04);
}

/* Alerts & Banners */
.auth-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px; padding: 0.75rem 0.9rem;
    font-size: 0.8rem; color: #FCA5A5;
    margin-bottom: 1rem; display: none; align-items: flex-start; gap: 0.6rem;
    animation: fadeIn 0.25s ease;
    position: relative;
    z-index: 1;
}
.auth-alert.show { display: flex; }

.resend-link-btn {
    background: none; border: none; padding: 0; margin-top: 0.4rem;
    color: #17E6AE; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
    text-decoration: underline;
}
.resend-link-btn:hover { color: #5eead4; }

.auth-success {
    background: rgba(23, 230, 174, 0.12);
    border: 1px solid rgba(23, 230, 174, 0.35);
    border-radius: 10px; padding: 0.75rem 0.9rem;
    font-size: 0.8rem; color: #6EE7B7;
    margin-bottom: 1rem; display: none; align-items: flex-start; gap: 0.65rem;
    animation: fadeIn 0.25s ease;
    position: relative;
    z-index: 1;
}
.auth-success.show { display: flex; }

/* Forms Container */
.forms-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-group { margin-bottom: 1rem; }
.form-label {
    font-size: 0.78rem; font-weight: 600; color: #CBD5E1;
    margin-bottom: 0.35rem; display: block;
}
.input-wrapper { position: relative; width: 100%; }
.input-icon {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    color: #64748B; font-size: 0.85rem; pointer-events: none; z-index: 2;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%; padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    background: rgba(5, 8, 17, 0.8); border: 1.5px solid #1E293B;
    border-radius: 12px; font-size: 0.875rem; color: #F8FAFC;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    position: relative;
}
.form-control:focus {
    border-color: #1065FF;
    box-shadow: 0 0 0 3px rgba(16, 101, 255, 0.15),
                0 0 20px rgba(16, 101, 255, 0.08);
    background: rgba(11, 17, 32, 0.95);
    transform: translateY(-1px);
}
.form-control:focus + .input-icon,
.form-control:focus ~ .input-icon {
    color: #1065FF;
}
.form-control::placeholder { color: #475569; }

input[type="email"].form-control,
input[type="text"].form-control {
    padding-right: 0.9rem;
}

/* Focused input - icon glow */
.input-wrapper:focus-within .input-icon {
    color: #1065FF;
    filter: drop-shadow(0 0 4px rgba(16, 101, 255, 0.4));
}

.password-toggle {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #64748B;
    font-size: 0.85rem; z-index: 2; padding: 4px; display: flex; align-items: center;
    transition: all 0.3s ease;
}
.password-toggle:hover {
    color: #17E6AE;
    filter: drop-shadow(0 0 6px rgba(23, 230, 174, 0.4));
}

/* Password Extras */
.login-extras {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.5rem; font-size: 0.78rem; color: #94A3B8;
}
.login-remember { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; user-select: none; }
.login-remember input { accent-color: #1065FF; cursor: pointer; }
.forgot-link { color: #17E6AE; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.forgot-link:hover {
    text-decoration: underline; color: #5eead4;
    text-shadow: 0 0 8px rgba(23, 230, 174, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   PRIMARY BUTTON — 3D Press Effect
   ═══════════════════════════════════════════════════════════════ */
.btn-gvp-primary {
    width: 100%; padding: 0.8rem; font-size: 0.875rem; font-weight: 700;
    background: linear-gradient(135deg, #1065FF 0%, #06B6D4 100%);
    color: #FFFFFF; border: none; border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 16px rgba(16, 101, 255, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
    transform: perspective(500px) translateZ(0);
}

.btn-gvp-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gvp-primary:hover {
    transform: perspective(500px) translateZ(8px) translateY(-2px);
    box-shadow:
        0 8px 30px rgba(16, 101, 255, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.12) inset;
    background: linear-gradient(135deg, #1d6dff 0%, #17e6ae 100%);
}
.btn-gvp-primary:hover::before {
    opacity: 1;
}

.btn-gvp-primary:active {
    transform: perspective(500px) translateZ(-2px) translateY(1px);
    box-shadow: 0 2px 8px rgba(16, 101, 255, 0.3);
}

.btn-gvp-primary .btn-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-gvp-primary.loading .btn-spinner { display: block; }
.btn-gvp-primary.loading .btn-text { display: none; }

.btn-back {
    background: none; border: none; color: #94A3B8;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    margin-bottom: 1rem; padding: 0;
    display: flex; align-items: center; gap: 0.4rem;
    transition: all 0.3s ease;
}
.btn-back:hover {
    color: #17E6AE;
    transform: translateX(-3px);
}

.form-heading { font-size: 1.2rem; font-weight: 800; color: #F8FAFC; margin-bottom: 0.2rem; }
.form-subheading { font-size: 0.8rem; color: #94A3B8; margin-bottom: 1.25rem; }

/* Terms & Privacy Policy Notice */
.auth-terms-notice {
    font-size: 0.74rem;
    color: #64748B;
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.terms-link {
    color: #94A3B8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #17E6AE;
}


/* ─── Verification Overlay ───────────────────────────────────── */
.verification-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    animation: fadeIn 0.4s ease both;
    position: relative;
    z-index: 1;
}
.verification-overlay.active {
    display: flex;
}

.vo-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 101, 255, 0.15), rgba(23, 230, 174, 0.15));
    border: 1px solid rgba(23, 230, 174, 0.25);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    animation: voFloat 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(23, 230, 174, 0.1);
}
.vo-icon-wrap i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1065FF, #17E6AE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes voFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25%      { transform: translateY(-4px) rotateY(5deg); }
    50%      { transform: translateY(-6px) rotateY(0deg); }
    75%      { transform: translateY(-4px) rotateY(-5deg); }
}

.vo-title {
    font-family: var(--font-bold);
    font-size: 1.3rem; font-weight: normal; color: #F8FAFC;
    margin: 0 0 0.5rem 0;
}

.vo-message {
    font-size: 0.85rem; color: #94A3B8;
    margin: 0 0 0.6rem 0; line-height: 1.5;
}

.vo-email-highlight {
    font-size: 0.9rem; font-weight: 700; color: #17E6AE;
    background: rgba(23, 230, 174, 0.08);
    border: 1px solid rgba(23, 230, 174, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.vo-tip {
    font-size: 0.75rem; color: #64748B;
    margin: 0 0 1.25rem 0;
    display: flex; align-items: center; gap: 0.4rem;
}
.vo-tip i { color: #FBBF24; font-size: 0.8rem; }

.vo-btn-resend {
    width: 100%; padding: 0.75rem; font-size: 0.85rem; font-weight: 700;
    background: linear-gradient(135deg, #1065FF 0%, #06B6D4 100%);
    color: #FFFFFF; border: none; border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(16, 101, 255, 0.35);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.vo-btn-resend:hover {
    transform: perspective(500px) translateZ(6px) translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 101, 255, 0.5);
}
.vo-btn-resend:disabled {
    opacity: 0.6; cursor: not-allowed; transform: none;
}
.vo-btn-resend.sent {
    background: linear-gradient(135deg, #10B981, #17E6AE);
    box-shadow: 0 4px 16px rgba(23, 230, 174, 0.35);
}

.vo-back-link {
    background: none; border: none;
    color: #94A3B8; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center; gap: 0.4rem;
    transition: all 0.3s ease;
}
.vo-back-link:hover {
    color: #17E6AE;
    transform: translateX(-3px);
}


/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .login-page,
    .login-wrapper {
        flex-direction: column;
        perspective: none;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .login-left {
        width: 100%;
        flex: none;
        min-height: auto;
        padding: 2rem 1.5rem 1.5rem;
        border-right: none;
        border-bottom: none;
    }
    .login-left-hero { flex: none; padding-bottom: 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-description { font-size: 0.85rem; margin-bottom: 1rem; }
    .login-feature-cards { display: none; }
    .login-left-bottom { display: none; }
    .login-grid-overlay { display: none; }
    .floating-shapes { display: none; }

    .login-right {
        width: 100%;
        flex: none;
        min-height: auto;
        padding: 2rem 1.25rem;
        perspective: none;
    }

    .login-card {
        animation: cardEntranceMobile 0.6s ease both;
    }

    @keyframes cardEntranceMobile {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ─── Medium Viewport Adjustments ────────────────────────────── */
@media (min-width: 861px) and (max-width: 1200px) {
    .login-left {
        padding: 2rem 2rem;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .login-feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.65rem;
    }
    .feature-card {
        padding: 1rem 0.65rem;
    }
    .feature-card-body h4 {
        font-size: 0.82rem;
    }
    .feature-card-body p {
        font-size: 0.72rem;
    }
}

/* ─── Short Viewport Adjustments ────────────────────────────── */
@media (min-width: 861px) and (max-height: 800px) {
    .login-left {
        padding: 1.5rem 2.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    .hero-label {
        margin-bottom: 1rem;
        padding: 0.25rem 0.75rem;
    }
    .hero-description {
        font-size: 0.85rem;
    }
    .login-feature-cards {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .feature-card {
        padding: 0.7rem 0.9rem;
    }
    .login-left-bottom {
        padding-top: 1rem;
    }
    .login-stats-bar {
        margin-bottom: 0.5rem;
    }
    .stat-value {
        font-size: 1.15rem;
    }
    .login-logo-img {
        height: 44px;
    }
    .login-card-header {
        margin-bottom: 1rem;
    }
}

@media (min-width: 861px) and (max-height: 700px) {
    .login-left {
        padding: 1rem 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .hero-label {
        margin-bottom: 0.75rem;
    }
    .login-feature-cards {
        display: none;
    }
    .login-stats-bar {
        display: none;
    }
    .login-left-bottom {
        padding-top: 0.5rem;
        border-top: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   CSS Property Registration for Conic Gradient Animation
   ═══════════════════════════════════════════════════════════════ */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
