@font-face {
    font-family: 'JostMedium';
    src: url("../../Assets/Fonts/jost.light.2d7286e1a1bb.ttf");
}

/* ============================================================
    CSS ROOT (From your global variables)
============================================================ */
:root {
    /* BRAND GREENS (global) */
    --vs-forest: #1B4332;
    --vs-forest-deep: #0F2B1E;
    --vs-forest-mid: #163828;
    --vs-emerald: #2D6A4F;
    --vs-emerald-light: #3D8B64;
    --vs-sage: #74C69D;
    --vs-sage-bright: #95D5B2;
    --vs-sage-pale: #B7E4C7;
    --vs-leaf: #52B788;
    --vs-mint: #D8F3DC;

    /* NEUTRALS (global) */
    --vs-cream: #F8F6F0;
    --vs-cream-deep: #F0ECE2;
    --vs-warm-white: #FDFCF8;
    --vs-ivory: #F5F1E8;
    --vs-charcoal: #1C1C1E;
    --vs-charcoal-soft: #2C2C2E;
    --vs-muted: #6B7280;
    --vs-muted-light: #9CA3AF;
    --vs-border: rgba(27, 67, 50, 0.10);
    --vs-border-mid: rgba(27, 67, 50, 0.18);
    --vs-border-strong: rgba(27, 67, 50, 0.32);

    /* GOLD (global) */
    --vs-gold: #B5936B;
    --vs-gold-bright: #C9A55A;
    --vs-gold-light: #D4B896;
    --vs-gold-pale: #EDD9BE;
    --vs-gold-glow: rgba(181, 147, 107, 0.20);

    /* TYPOGRAPHY */
    --font-display: 'JostMedium';
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* EASING */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);

    /* LAYOUT */
    --max-w: 1400px;
    --section-pad: clamp(80px, 10vw, 140px);
    --container-px: clamp(24px, 4.8vw, 76px);

    /* RADIUS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* SHADOWS */
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.10);
    --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.14);
    --shadow-xl: 0 40px 100px rgba(27, 67, 50, 0.18);
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--vs-cream);
    color: var(--vs-charcoal);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================================
    LOGIN PAGE LAYOUT
============================================================ */
.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    isolation: isolate;
    background: var(--vs-cream);
}

/* ============================================================
    LEFT PANEL - FORM
============================================================ */
.login-form-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vw, 70px);
    background: var(--vs-warm-white);
    align-items: center;
}

/* Logo */
.login-brand {
    margin-bottom: 40px;
}

.login-brand__logo {
    width: 120px;
    height: auto;
}

.login-brand__logo img {
    width: 100%;
    height: auto;
}

/* Form Container */
.login-form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 32px;
}

.login-header__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 600;
    color: var(--vs-charcoal);
    margin-bottom: 12px;
    line-height: 1.2;
}

.login-header__subtitle {
    font-size: 14px;
    color: var(--vs-muted);
}

.login-header__subtitle a {
    color: var(--vs-emerald-light);
    text-decoration: underline;
    font-weight: 500;
}

.login-header__subtitle a:hover {
    color: var(--vs-forest);
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--vs-charcoal-soft);
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--vs-cream);
    border: 1.5px solid var(--vs-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--vs-charcoal);
    transition: all 0.3s var(--ease-smooth);
    outline: none;
}

.form-input::placeholder {
    color: var(--vs-muted-light);
}

.form-input:focus {
    border-color: var(--vs-sage);
    background: var(--vs-warm-white);
    box-shadow: 0 0 0 4px var(--vs-gold-glow);
}

.form-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--vs-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.form-input:focus+.form-icon {
    color: var(--vs-sage);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--vs-muted);
    transition: color 0.3s;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--vs-forest);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Remember & Forgot */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--vs-sage);
    cursor: pointer;
}

.form-remember label {
    font-size: 13px;
    color: var(--vs-muted);
    cursor: pointer;
    user-select: none;
}

.form-forgot {
    font-size: 13px;
    color: var(--vs-emerald-light);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.form-forgot:hover {
    color: var(--vs-forest);
}

/* Submit Button */
.login-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--vs-forest);
    color: var(--vs-cream);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease-out);
}

.login-btn:hover {
    background: var(--vs-emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(27, 67, 50, 0.3);
}

.login-btn:hover::before {
    transform: translateX(100%);
}

.login-btn:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--vs-muted-light);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vs-border);
}

/* Social Login Buttons */
.social-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--vs-cream);
    border: 1.5px solid var(--vs-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--vs-charcoal);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.social-btn:hover {
    background: var(--vs-warm-white);
    border-color: var(--vs-sage);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Signup Link */
.login-signup {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--vs-muted);
}

.login-signup a {
    color: var(--vs-emerald-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-signup a:hover {
    color: var(--vs-forest);
}

/* ============================================================
    RIGHT PANEL - VISUAL
============================================================ */
.login-visual {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(40px, 5vw, 70px);
    background: linear-gradient(135deg, var(--vs-forest-deep) 0%, var(--vs-forest) 100%);
    overflow: hidden;
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(116, 198, 157, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201, 165, 90, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

/* Dot grid pattern */
.login-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 165, 90, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

/* Support Link */
.login-support {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--vs-cream);
    font-size: 14px;
    font-weight: 500;
}

.login-support svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Feature Cards Container */
.login-visual__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Feature Card */
.feature-card {
    background: var(--vs-warm-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--vs-forest);
    margin-bottom: 12px;
    line-height: 1.2;
}

.feature-card__text {
    font-size: 14px;
    color: var(--vs-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--vs-forest);
    color: var(--vs-cream);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.feature-card__btn:hover {
    background: var(--vs-emerald-light);
    transform: translateY(-2px);
}

/* Card Image */
.feature-card__image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 140px;
    height: 90px;
    background: linear-gradient(135deg, var(--vs-sage) 0%, var(--vs-emerald) 100%);
    border-radius: var(--radius-md);
    transform: rotate(15deg);
    box-shadow: var(--shadow-lg);
}

.feature-card__image::before {
    content: 'Vitalis';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--vs-cream);
    letter-spacing: 2px;
}

/* Earnings Widget */
.earnings-widget {
    background: var(--vs-warm-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    margin-left: auto;
    margin-right: 20px;
    width: fit-content;
}

.earnings-widget__icon {
    width: 40px;
    height: 40px;
    background: var(--vs-mint);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.earnings-widget__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--vs-emerald);
    stroke-width: 2;
    fill: none;
}

.earnings-widget__content {
    display: flex;
    flex-direction: column;
}

.earnings-widget__label {
    font-size: 11px;
    color: var(--vs-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.earnings-widget__value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--vs-forest);
}

/* Features Section */
.features-section {
    position: relative;
    z-index: 2;
}

.features-section__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    color: var(--vs-cream);
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-section__text {
    font-size: 14px;
    color: rgba(248, 246, 240, 0.8);
    line-height: 1.7;
    max-width: 480px;
}

/* Floating Orbs */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.20;
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.login-orb--1 {
    width: 300px;
    height: 300px;
    background: var(--vs-sage);
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.login-orb--2 {
    width: 250px;
    height: 250px;
    background: var(--vs-gold);
    bottom: -60px;
    left: -60px;
    opacity: 0.15;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

/* ============================================================
    RESPONSIVE DESIGN
============================================================ */
@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .login-form-panel {
        padding: 32px 20px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px 28px;
    }

    .login-header__title {
        font-size: 28px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card__title {
        font-size: 20px;
    }
}