@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-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================================
    SIGNUP PAGE LAYOUT
============================================================ */
.signup-page {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: hidden;
    isolation: isolate;
    background: var(--vs-cream);
}

/* ============================================================
    LEFT PANEL - FORM
============================================================ */
.signup-form-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 4vw, 60px);
    background: var(--vs-warm-white);
    overflow-y: auto;
    max-height: 100vh;
    justify-content: center;
}

/* Logo - Top Left Small */
.signup-brand {
    margin-bottom: 30px;
    align-self: flex-start;
}

.signup-brand__logo {
    width: 80px;
    height: auto;
}

.signup-brand__logo img {
    width: 100%;
    height: auto;
}

/* Form Container */
.signup-form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.signup-header {
    margin-bottom: 32px;
}

.signup-header__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 600;
    color: var(--vs-charcoal);
    margin-bottom: 12px;
    line-height: 1.2;
}

.signup-header__subtitle {
    font-size: 14px;
    color: var(--vs-muted);
}

.signup-header__subtitle a {
    color: var(--vs-emerald-light);
    text-decoration: underline;
    font-weight: 500;
}

.signup-header__subtitle a:hover {
    color: var(--vs-forest);
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 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-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: var(--vs-sage);
}

.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;
}

/* Validation Messages */
.validation-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.validation-message.show {
    display: block;
}

.validation-message.success {
    color: var(--vs-emerald);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--vs-border);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength__bar {
    height: 100%;
    width: 0;
    transition: all 0.3s var(--ease-smooth);
    border-radius: 2px;
}

.password-strength__bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength__bar.medium {
    width: 66%;
    background: var(--vs-gold);
}

.password-strength__bar.strong {
    width: 100%;
    background: var(--vs-sage);
}

/* Terms Checkbox */
.form-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.form-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--vs-sage);
    cursor: pointer;
    flex-shrink: 0;
}

.form-terms label {
    font-size: 13px;
    color: var(--vs-muted);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.form-terms a {
    color: var(--vs-emerald-light);
    text-decoration: underline;
    font-weight: 500;
}

.form-terms a:hover {
    color: var(--vs-forest);
}

/* Submit Button */
.signup-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;
}

.signup-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);
}

.signup-btn:hover {
    background: var(--vs-emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(27, 67, 50, 0.3);
}

.signup-btn:hover::before {
    transform: translateX(100%);
}

.signup-btn:active {
    transform: translateY(0);
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Link */
.signup-login {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--vs-muted);
}

.signup-login a {
    color: var(--vs-emerald-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-login a:hover {
    color: var(--vs-forest);
}

/* ============================================================
    RIGHT PANEL - VISUAL
============================================================ */
.signup-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;
}

.signup-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 */
.signup-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 */
.signup-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;
}

.signup-support svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Feature Cards Container */
.signup-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;
}

/* 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 */
.signup-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;
}

.signup-orb--1 {
    width: 300px;
    height: 300px;
    background: var(--vs-sage);
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.signup-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
============================================================ */

/* Large Screens (27 inch and up) */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .signup-form {
        max-width: 560px;
    }

    .signup-brand__logo {
        width: 100px;
    }
}

/* Laptop and Desktop */
@media (max-width: 1200px) {
    .signup-form-panel {
        padding: clamp(30px, 4vw, 50px);
    }
}

/* Tablet */
@media (max-width: 900px) {
    .signup-page {
        grid-template-columns: 1fr;
    }

    .signup-visual {
        display: none;
    }

    .signup-form-panel {
        padding: 40px 24px;
        max-height: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .signup-form-panel {
        padding: 32px 20px;
    }

    .signup-brand__logo {
        width: 70px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .signup-btn {
        padding: 14px 28px;
    }

    .signup-header__title {
        font-size: 26px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card__title {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .signup-header__title {
        font-size: 24px;
    }

    .form-label {
        font-size: 12px;
    }
}

/* Loading State */
.signup-btn.loading {
    position: relative;
    color: transparent;
}

.signup-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--vs-cream);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styling */
.signup-form-panel::-webkit-scrollbar {
    width: 8px;
}

.signup-form-panel::-webkit-scrollbar-track {
    background: var(--vs-cream);
}

.signup-form-panel::-webkit-scrollbar-thumb {
    background: var(--vs-border-mid);
    border-radius: 4px;
}

.signup-form-panel::-webkit-scrollbar-thumb:hover {
    background: var(--vs-emerald);
}