@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Dancing+Script:wght@600;700&family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   FITCLUB 43-009 - PREMIUM GYM SAAS LOGIN - ULTIMATE REDESIGN v4.0
   Design Philosophy: "Fitness Technology meets Premium SaaS"
   Desktop: Split Screen 55% Branding / 45% Login Card (1920x1080)
   Mobile: Full Screen Immersive Experience (<768px)
   ========================================================================== */

/* ════════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ════════════════════════════════════════════════════════════════════════════ */
:root {
    --fc-navy:        #041B33;
    --fc-navy-deep:   #020D1A;
    --fc-blue:        #0066CC;
    --fc-blue-vivid:  #0055FF;
    --fc-blue-light:  #38bdf8;
    --fc-orange:      #FF8A00;
    --fc-orange-hot:  #FF6B00;
    --fc-gold:        #FBBF24;
    --fc-white:       #FFFFFF;
    --fc-glass-bg:    rgba(255, 255, 255, 0.13);
    --fc-glass-border:rgba(255, 255, 255, 0.28);
    --fc-glass-blur:  blur(28px) saturate(160%);
    --fc-font-main:   'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    --fc-font-script: 'Caveat', 'Dancing Script', cursive;
    --fc-easing:      cubic-bezier(0.16, 1, 0.3, 1);
    --fc-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════════════════════════════════════
   2. ROOT LOGIN CONTAINER
   ════════════════════════════════════════════════════════════════════════════ */
#login-container {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important; padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    z-index: 99999 !important;
    background-color: var(--fc-navy-deep) !important;
    font-family: var(--fc-font-main) !important;
    color: var(--fc-white) !important;
    box-sizing: border-box !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
}

.fitclub-login-root {
    position: relative;
    width: 100%; height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   3. LAYERED BACKGROUND SYSTEM (5 layers of depth)
   ════════════════════════════════════════════════════════════════════════════ */

/* Layer 1: Gym Photo - Ken Burns Cinematic Zoom */
.fitclub-login-bg {
    position: absolute;
    top: -8%; left: -8%;
    width: 116%; height: 116%;
    background-image: url('/images/gym-bg-desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: kenBurnsUltra 22s ease-in-out infinite alternate;
    will-change: transform;
    filter: brightness(0.95) contrast(1.05) saturate(1.15);
}

@keyframes kenBurnsUltra {
    0%   { transform: scale(1.08) translate(0px, 0px);      }
    33%  { transform: scale(1.04) translate(-12px, -6px);   }
    66%  { transform: scale(1.02) translate(8px, 4px);      }
    100% { transform: scale(1.0)  translate(4px, 8px);      }
}

/* Layer 2: Primary Dark Gradient Overlay */
.fitclub-overlay-gradient {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        125deg,
        rgba(4, 27, 51, 0.86)  0%,
        rgba(4, 27, 51, 0.72)  35%,
        rgba(0, 80, 160, 0.45) 65%,
        rgba(4, 10, 22, 0.82)  100%
    );
    pointer-events: none;
}

/* Layer 3: Vignette for Depth */
.fitclub-overlay-vignette {
    position: absolute; inset: 0; z-index: 3;
    background: radial-gradient(
        ellipse 110% 90% at 72% 50%,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(2, 12, 25, 0.65) 70%,
        rgba(1, 6, 14, 0.95)  100%
    );
    pointer-events: none;
}

/* Layer 4: Noise texture for premium feel */
.fitclub-overlay-noise {
    position: absolute; inset: 0; z-index: 4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ════════════════════════════════════════════════════════════════════════════
   4. ANIMATED LIGHT SYSTEM
   ════════════════════════════════════════════════════════════════════════════ */

/* Glow Orbs - Energy Light Sources */
.fitclub-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    contain: layout style;
}

/* Blue Orb - Moves Left to Right */
.fitclub-glow-orb-blue {
    width: 600px; height: 600px;
    background: radial-gradient(circle,
        rgba(0, 110, 255, 0.5) 0%,
        rgba(0, 80, 200, 0.18) 50%,
        rgba(0, 0, 0, 0) 72%
    );
    top: -10%; left: -5%;
    animation: orbBlueFloat 9s ease-in-out infinite alternate;
    /* Bỏ filter:blur — gradient đã mềm sẵn, blur tốn GPU không cần thiết */
}

@keyframes orbBlueFloat {
    0%   { transform: translate(0px, 0px) scale(1);    opacity: 0.7; }
    50%  { transform: translate(160px, 80px) scale(1.1); opacity: 0.85; }
    100% { transform: translate(300px, 40px) scale(0.95); opacity: 0.65; }
}

/* Orange Orb - Moves Bottom to Top */
.fitclub-glow-orb-orange {
    width: 500px; height: 500px;
    background: radial-gradient(circle,
        rgba(255, 110, 0, 0.45) 0%,
        rgba(255, 80, 0, 0.16) 45%,
        rgba(0, 0, 0, 0) 72%
    );
    bottom: -15%; left: 20%;
    animation: orbOrangeFloat 12s ease-in-out infinite alternate;
    /* Bỏ filter:blur */
}

@keyframes orbOrangeFloat {
    0%   { transform: translate(0px, 0px) scale(0.9);    opacity: 0.6; }
    50%  { transform: translate(-60px, -120px) scale(1.15); opacity: 0.85; }
    100% { transform: translate(-100px, -200px) scale(1.0); opacity: 0.55; }
}

/* Accent Orb - Teal/Cyan small orb */
.fitclub-glow-orb-accent {
    width: 300px; height: 300px;
    background: radial-gradient(circle,
        rgba(56, 189, 248, 0.35) 0%,
        rgba(14, 165, 233, 0.12) 45%,
        rgba(0, 0, 0, 0) 72%
    );
    top: 60%; right: 5%;
    animation: orbAccentFloat 15s ease-in-out infinite alternate;
    /* Bỏ filter:blur */
}

@keyframes orbAccentFloat {
    0%   { transform: translate(0px, 0px) scale(1);       opacity: 0.5; }
    100% { transform: translate(-80px, -60px) scale(1.2); opacity: 0.7; }
}

/* Horizontal Light Streak */
.fitclub-light-streak {
    position: absolute;
    height: 1.5px;
    width: 45%;
    left: 0; top: 38%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 102, 255, 0.6) 30%,
        rgba(255, 138, 0, 0.8) 65%,
        transparent 100%
    );
    z-index: 5;
    animation: streakHorizontal 8s ease-in-out infinite;
    will-change: transform, opacity;
    /* Bỏ filter:blur */
}

@keyframes streakHorizontal {
    0%, 100% { opacity: 0;   transform: scaleX(0.3) translateX(-20%); }
    30%       { opacity: 0.8; transform: scaleX(1.0) translateX(0%);   }
    70%       { opacity: 0.9; transform: scaleX(1.2) translateX(5%);   }
}

/* Diagonal Energy Ribbons — filter cố định (không animate) để tránh repaint */
.fitclub-ambient-ribbon {
    position: absolute;
    bottom: -80px; left: -100px;
    width: 1000px; height: 420px;
    border-top: 3px solid rgba(255, 138, 0, 0.9);
    border-radius: 50%;
    transform: rotate(-13deg);
    box-shadow: 0 0 18px rgba(255, 138, 0, 0.6), 0 0 40px rgba(0, 102, 255, 0.3);
    z-index: 5;
    pointer-events: none;
    opacity: 0.85;
    will-change: opacity;
    animation: ribbonPulse 6s ease-in-out infinite alternate;
}

.fitclub-ambient-ribbon-sub {
    position: absolute;
    bottom: -110px; left: -70px;
    width: 850px; height: 360px;
    border-top: 1.5px solid rgba(0, 102, 255, 0.65);
    border-radius: 50%;
    transform: rotate(-17deg);
    box-shadow: 0 0 14px rgba(0, 102, 255, 0.55);
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
    will-change: opacity;
    animation: ribbonPulse 6s ease-in-out 3s infinite alternate;
}

/* ribbonPulse: chỉ animate opacity (GPU-friendly), KHÔNG animate filter/drop-shadow */
@keyframes ribbonPulse {
    0%   { opacity: 0.6; }
    100% { opacity: 1.0; }
}

/* Floating Particles */
.fitclub-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

.fitclub-particle:nth-child(1) {
    background: rgba(255, 138, 0, 0.8);
    top: 25%; left: 15%;
    animation: particleFloat1 7s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 138, 0, 0.8);
}
.fitclub-particle:nth-child(2) {
    background: rgba(0, 102, 255, 0.9);
    width: 4px; height: 4px;
    top: 60%; left: 40%;
    animation: particleFloat2 9s ease-in-out 2s infinite;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
}
.fitclub-particle:nth-child(3) {
    background: rgba(56, 189, 248, 0.8);
    top: 45%; left: 28%;
    animation: particleFloat1 11s ease-in-out 4s infinite;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.fitclub-particle:nth-child(4) {
    background: rgba(255, 200, 0, 0.7);
    width: 2px; height: 2px;
    top: 80%; left: 8%;
    animation: particleFloat2 8s ease-in-out 1s infinite;
    box-shadow: 0 0 6px rgba(255, 200, 0, 0.7);
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1);      opacity: 0.6; }
    33%       { transform: translate(20px, -30px) scale(1.5); opacity: 1;   }
    66%       { transform: translate(-10px, -50px) scale(0.8); opacity: 0.4; }
}
@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1);       opacity: 0.7; }
    50%       { transform: translate(-25px, -40px) scale(1.8); opacity: 1;   }
}

/* ════════════════════════════════════════════════════════════════════════════
   5. MAIN LAYOUT - SPLIT SCREEN
   ════════════════════════════════════════════════════════════════════════════ */
.fitclub-split-container {
    position: relative; z-index: 10;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 44px 72px;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════════════════════
   6. LEFT BRAND SECTION (55%)
   ════════════════════════════════════════════════════════════════════════════ */
.fitclub-brand-section {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 60px;
    box-sizing: border-box;
    z-index: 12;
    height: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo Header with Spring Animation */
.fitclub-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: logoSpringIn 1s var(--fc-easing-spring) 0.1s forwards;
}

@keyframes logoSpringIn {
    0%   { opacity: 0; transform: scale(0.75) translateY(-12px); }
    60%  { opacity: 1; transform: scale(1.04) translateY(2px);   }
    100% { opacity: 1; transform: scale(1) translateY(0px);      }
}

/* Logo Badge - Glass with Glow */
.fitclub-logo-badge {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 102, 255, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--fc-easing);
}

.fitclub-logo-badge::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 60%
    );
    border-radius: inherit;
    pointer-events: none;
}

.fitclub-logo-badge:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 102, 255, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Brand Name Styles */
.fitclub-brand-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fitclub-brand-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--fc-white);
    text-shadow:
        0 3px 16px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 102, 255, 0.3);
}

.fitclub-brand-name .name-577 {
    color: var(--fc-orange);
    text-shadow:
        0 0 25px rgba(255, 138, 0, 0.6),
        0 3px 16px rgba(0, 0, 0, 0.6);
}

.fitclub-brand-subtitle {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--fc-blue-light);
    margin-top: 3px;
}

/* ── STATS BAR (New Feature) ── */
.fitclub-stats-bar {
    display: flex;
    gap: 28px;
    margin: 24px 0 0 0;
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--fc-easing) 0.5s forwards;
}

.fitclub-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fitclub-stat-number {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--fc-white) 0%, var(--fc-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fitclub-stat-number.orange {
    background: linear-gradient(135deg, var(--fc-orange) 0%, #FFCC44 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.fitclub-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.fitclub-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

/* Headline Area */
.fitclub-brand-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
}

.fitclub-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid rgba(0, 102, 255, 0.4);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fc-blue-light);
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    opacity: 0;
    animation: fadeSlideUp 0.7s var(--fc-easing) 0.4s forwards;
}

.fitclub-hero-label-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 6px rgba(34, 211, 238, 0.7); }
    50%       { opacity: 0.7; transform: scale(1.5); box-shadow: 0 0 14px rgba(34, 211, 238, 1);   }
}

.fitclub-hero-headline {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.5px;
    color: var(--fc-white);
    margin-bottom: 36px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeSlideUp 0.9s var(--fc-easing) 0.5s forwards;
}

.fitclub-hero-headline .highlight-orange {
    color: var(--fc-orange);
    text-shadow:
        0 0 30px rgba(255, 138, 0, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

/* Underline accent for orange text */
.fitclub-hero-headline .highlight-orange::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--fc-orange), var(--fc-gold), transparent);
    border-radius: 2px;
    animation: underlineGrow 0.8s var(--fc-easing) 1.2s both;
    transform-origin: left center;
}

@keyframes underlineGrow {
    0%   { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* Feature Cards Grid */
.fitclub-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 0;
}

.fitclub-feature-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 20px 16px 18px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s var(--fc-easing);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(40px);
    animation: featureCardIn 0.9s var(--fc-easing) forwards;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on cards */
.fitclub-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
    transition: left 0.6s ease;
}

.fitclub-feature-card:hover::before {
    left: 100%;
}

.fitclub-feature-card:nth-child(1) { animation-delay: 0.60s; }
.fitclub-feature-card:nth-child(2) { animation-delay: 0.75s; }
.fitclub-feature-card:nth-child(3) { animation-delay: 0.90s; }
.fitclub-feature-card:nth-child(4) { animation-delay: 1.05s; }

@keyframes featureCardIn {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0);    }
}

.fitclub-feature-card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 138, 0, 0.5);
    transform: translateY(-7px) scale(1.01);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(255, 138, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fitclub-feature-icon-wrapper {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s var(--fc-easing-spring);
}

.fitclub-feature-card:hover .fitclub-feature-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.fitclub-feature-icon-blue {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.5), rgba(0, 55, 153, 0.75));
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.fitclub-feature-icon-orange {
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.5), rgba(200, 70, 0, 0.75));
    color: #fed7aa;
    border: 1px solid rgba(255, 138, 0, 0.5);
}

.fitclub-feature-icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(6, 120, 87, 0.75));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.fitclub-feature-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--fc-white);
    line-height: 1.25;
    margin-bottom: 6px;
}

.fitclub-feature-desc {
    font-size: 11px;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.45;
}

/* Handwriting Slogan */
.fitclub-brand-footer {
    display: flex;
    align-items: center;
    margin-top: 4px;
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--fc-easing) 1.3s forwards;
}

.fitclub-handwriting-slogan {
    font-family: var(--fc-font-script);
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 600;
    color: #bfdbfe;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   7. RIGHT LOGIN SECTION (45%)
   ════════════════════════════════════════════════════════════════════════════ */
.fitclub-login-section {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
}

/* Glass Card - The Login Panel */
.fitclub-glass-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 40px 36px 34px 36px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.05),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(80px);
    animation: cardSlideInRight 1s var(--fc-easing) 0.2s forwards;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Top highlight shimmer line */
.fitclub-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    border-radius: 2px;
    pointer-events: none;
}

/* Subtle corner glow */
.fitclub-glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(0, 102, 255, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 138, 0, 0.15) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.fitclub-glass-card:hover::after {
    opacity: 1;
}

.fitclub-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 102, 255, 0.25),
        inset 0 2px 1px rgba(255, 255, 255, 0.7);
}

@keyframes cardSlideInRight {
    0%   { opacity: 0; transform: translateX(80px); }
    60%  { opacity: 1; transform: translateX(-6px);  }
    100% { opacity: 1; transform: translateX(0px);   }
}

/* Card Header */
.fitclub-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.fitclub-mini-logo {
    width: 70px; height: 70px;
    margin: 0 auto 16px auto;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    padding: 5px;
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 102, 255, 0.4);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s var(--fc-easing-spring);
}

.fitclub-mini-logo:hover {
    transform: scale(1.1) rotate(4deg);
}

.fitclub-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 138, 0, 0.15);
    border: 1px solid rgba(255, 138, 0, 0.35);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 10px;
}

.fitclub-card-title {
    font-size: 25px;
    font-weight: 900;
    color: var(--fc-white);
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fitclub-card-subtitle {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.55;
    max-width: 310px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   8. FORM ELEMENTS
   ════════════════════════════════════════════════════════════════════════════ */
.fitclub-form-group {
    margin-bottom: 14px;
    position: relative;
}

/* Label */
.fitclub-input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-left: 2px;
}

/* Input Wrapper - White Glass */
.fitclub-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.93);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s var(--fc-easing);
    overflow: hidden;
}

.fitclub-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #0066FF;
    box-shadow:
        0 0 0 4px rgba(0, 102, 255, 0.2),
        0 8px 24px rgba(0, 102, 255, 0.25);
    transform: scale(1.015) translateY(-1px);
}

.fitclub-input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066FF;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.3s var(--fc-easing-spring);
}

.fitclub-input-wrapper:focus-within .fitclub-input-icon {
    transform: scale(1.15);
}

.fitclub-input-field {
    width: 100%;
    height: 54px;
    background: transparent;
    border: none; outline: none;
    padding: 0 48px 0 48px;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    box-sizing: border-box;
    font-family: var(--fc-font-main);
    letter-spacing: 0.2px;
}

.fitclub-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14px;
}

.fitclub-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none; outline: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: all 0.25s ease;
    z-index: 2;
}

.fitclub-password-toggle:hover {
    color: #0066FF;
    background: rgba(0, 102, 255, 0.1);
}

/* Options Row */
.fitclub-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 22px 0;
    font-size: 13px;
}

.fitclub-remember-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.fitclub-checkbox {
    width: 18px; height: 18px;
    accent-color: #0066FF;
    cursor: pointer;
}

.fitclub-forgot-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.fitclub-forgot-link:hover {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

/* Submit Button - The Star of the Show */
.fitclub-btn-submit {
    width: 100%;
    height: 58px;
    border: none; border-radius: 16px;
    outline: none;
    cursor: pointer;
    font-family: var(--fc-font-main);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fc-white);
    background: linear-gradient(90deg,
        #0055FF  0%,
        #0088FF  25%,
        #FF6600  75%,
        #FF8A00  100%
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
    box-shadow:
        0 8px 28px rgba(0, 102, 255, 0.45),
        0 0 25px rgba(255, 138, 0, 0.3);
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    transition: all 0.4s var(--fc-easing);
    position: relative;
    overflow: hidden;
}

/* Ripple shine overlay */
.fitclub-btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.fitclub-btn-submit:hover::before {
    left: 150%;
}

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

.fitclub-btn-submit:hover {
    transform: translateY(-5px);
    box-shadow:
        0 16px 40px rgba(255, 100, 0, 0.55),
        0 0 35px rgba(255, 100, 0, 0.45),
        0 0 80px rgba(0, 102, 255, 0.25);
    background-position: 100% 50%;
    animation: gradientShift 2.5s ease infinite;
}

.fitclub-btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.45);
}

.fitclub-btn-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none !important;
    animation: none !important;
    pointer-events: none;
}

.fitclub-btn-arrow {
    transition: transform 0.3s var(--fc-easing-spring);
    flex-shrink: 0;
}

.fitclub-btn-submit:hover .fitclub-btn-arrow {
    transform: translateX(5px);
}

/* Divider */
.fitclub-card-divider {
    display: flex;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fitclub-card-divider::before,
.fitclub-card-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.fitclub-card-divider span {
    padding: 0 14px;
}

/* Security Badge */
.fitclub-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.fitclub-security-badge svg {
    color: rgba(16, 185, 129, 0.8);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   9. UTILITY ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0px);  }
}

/* ════════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE - TABLET (992px)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .fitclub-split-container { padding: 36px 48px; }
    .fitclub-hero-headline   { font-size: 38px; }
    .fitclub-features-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fitclub-stats-bar        { gap: 20px; }
    .fitclub-stat-number      { font-size: 22px; }
}

@media (max-width: 992px) {
    .fitclub-hero-headline  { font-size: 32px; }
    .fitclub-split-container { padding: 28px 32px; }
    .fitclub-brand-name      { font-size: 28px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   11. RESPONSIVE - MOBILE (<768px)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #login-container {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .fitclub-login-bg {
        background-image: url('/images/gym-bg-mobile.avif');
        filter: brightness(0.75) contrast(1.1) saturate(1.2);
    }

    .fitclub-overlay-gradient {
        background: linear-gradient(
            180deg,
            rgba(4, 27, 51, 0.88) 0%,
            rgba(4, 27, 51, 0.70) 35%,
            rgba(0, 40, 100, 0.60) 60%,
            rgba(4, 10, 22, 0.92) 100%
        );
    }

    .fitclub-ambient-ribbon,
    .fitclub-ambient-ribbon-sub,
    .fitclub-light-streak {
        display: none;
    }

    /* Mobile: Stacked Layout */
    .fitclub-split-container {
        flex-direction: column;
        justify-content: space-between;
        padding: 28px 18px 18px 18px;
        min-height: 100dvh;
        height: auto;
        align-items: center;
    }

    /* Brand - Top Center */
    .fitclub-brand-section {
        flex: 0 0 auto;
        max-width: 100%;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        text-align: center;
        align-items: center;
        margin-bottom: 14px;
        height: auto;
    }

    .fitclub-brand-header {
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
        animation: logoSpringInMobile 0.8s var(--fc-easing-spring) 0.1s both;
    }

    @keyframes logoSpringInMobile {
        0%   { opacity: 0; transform: scale(0.8) translateY(-16px); }
        100% { opacity: 1; transform: scale(1) translateY(0);       }
    }

    .fitclub-logo-badge { width: 76px; height: 76px; }
    .fitclub-brand-title-group { align-items: center; }
    .fitclub-brand-name { font-size: 28px; }
    .fitclub-brand-subtitle { font-size: 10.5px; letter-spacing: 1.5px; }

    .fitclub-stats-bar { display: none; }

    .fitclub-brand-center {
        margin: 8px 0 0 0;
        padding: 0;
        justify-content: flex-start;
    }

    .fitclub-hero-label { display: none; }

    .fitclub-hero-headline {
        font-size: 21px;
        margin-bottom: 0;
        line-height: 1.35;
        animation: fadeSlideUp 0.7s var(--fc-easing) 0.4s both;
    }

    /* Hide desktop features on mobile */
    .fitclub-features-grid,
    .fitclub-brand-footer {
        display: none !important;
    }

    /* Login Card - Bottom Glass */
    .fitclub-login-section {
        flex: 1 0 auto;
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 8px;
    }

    .fitclub-glass-card {
        max-width: 100%;
        width: 100%;
        border-radius: 28px;
        padding: 26px 20px 22px 20px;
        transform: translateY(100px);
        animation: cardSlideUpMobile 0.9s var(--fc-easing) 0.2s both;
        background: rgba(10, 30, 60, 0.75);
        backdrop-filter: blur(30px) saturate(200%);
        -webkit-backdrop-filter: blur(30px) saturate(200%);
        border: 1.5px solid rgba(255, 255, 255, 0.22);
    }

    @keyframes cardSlideUpMobile {
        0%   { opacity: 0; transform: translateY(100px); }
        60%  { opacity: 1; transform: translateY(-8px);  }
        100% { opacity: 1; transform: translateY(0px);   }
    }

    .fitclub-mini-logo { display: none; }
    .fitclub-welcome-badge { display: none; }

    .fitclub-card-title   { font-size: 21px; }
    .fitclub-card-subtitle { font-size: 12.5px; }

    .fitclub-input-field { height: 52px; font-size: 14px; }
    .fitclub-btn-submit  { height: 54px; font-size: 14.5px; }

    .fitclub-field-user {
        animation: mobileStagger 0.6s var(--fc-easing) 0.45s both;
    }
    .fitclub-field-pass {
        animation: mobileStagger 0.6s var(--fc-easing) 0.55s both;
    }
    .fitclub-field-btn {
        animation: mobileStagger 0.6s var(--fc-easing) 0.65s both;
    }

    @keyframes mobileStagger {
        0%   { opacity: 0; transform: translateY(18px); }
        100% { opacity: 1; transform: translateY(0px);  }
    }

    .fitclub-glow-orb-blue {
        width: 400px; height: 400px;
        top: -5%; left: -15%;
    }
    .fitclub-glow-orb-orange {
        width: 320px; height: 320px;
        bottom: 30%; left: 10%;
    }
    .fitclub-glow-orb-accent { display: none; }
    .fitclub-particle { display: none; }
}

@media (max-width: 380px) {
    .fitclub-hero-headline { font-size: 19px; }
    .fitclub-brand-name    { font-size: 24px; }
    .fitclub-glass-card    { padding: 22px 16px 18px 16px; border-radius: 24px; }
    .fitclub-btn-submit    { height: 50px; font-size: 13.5px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   12. REDUCED MOTION SUPPORT (Accessibility)
   ════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
