﻿:root {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --glass: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --cyan-400: #22d3ee;
            --cyan-500: #06b6d4;
            --blue-400: #60a5fa;
            --blue-500: #3b82f6;
            --purple-400: #c084fc;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            margin: 0; padding: 0;
            height: 100%;
            width: 100%;
            background-color: var(--bg-primary);
            font-family: 'Bricolage Grotesque', sans-serif;
            color: white;
        }

        body {
            margin: 0; padding: 0;
            min-height: 100%;
            width: 100%;
            background-color: var(--bg-primary);
            font-family: 'Bricolage Grotesque', sans-serif;
            color: white;
        }

        /* --- BACKGROUND --- */
        .background {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1;
            overflow: hidden;
            background: #0f172a;
        }

        .gradient-layer {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom right, rgba(8, 145, 178, 0.2), rgba(30, 64, 175, 0.2), rgba(88, 28, 135, 0.2));
        }

        .radial-layer {
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
        }

        .particles {
            position: absolute;
            inset: 0;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(34, 211, 238, 0.3);
            border-radius: 50%;
            animation: pulse 3s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.8; }
        }

        .glow-top {
            position: absolute;
            top: 0;
            left: 25%;
            width: 384px;
            height: 384px;
            background: rgba(6, 182, 212, 0.05);
            border-radius: 50%;
            filter: blur(80px);
        }

        .glow-bottom {
            position: absolute;
            bottom: 0;
            right: 25%;
            width: 384px;
            height: 384px;
            background: rgba(59, 130, 246, 0.05);
            border-radius: 50%;
            filter: blur(80px);
        }

        /* --- AUTH CARD --- */
        .auth-wrapper {
            width: 100%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }

        .auth-card {
            width: 100%;
            max-width: 440px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 40px;
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.5s ease forwards;
        }

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

        .auth-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5), transparent);
        }

        /* --- LOGO AREA --- */
        .auth-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 28px;
        }

        .logo-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
            border: 1px solid rgba(34, 211, 238, 0.3);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            position: relative;
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 14px;
            background: rgba(34, 211, 238, 0.1);
            filter: blur(12px);
            z-index: -1;
        }

        .logo-icon svg {
            width: 28px;
            height: 28px;
            stroke: var(--cyan-400);
        }

        .auth-logo h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.05em;
            background: linear-gradient(to right, var(--cyan-400), var(--blue-400));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .auth-logo p {
            margin: 6px 0 0;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
        }

        /* --- FORM --- */
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .form-label {
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 0.02em;
        }

        .form-input-wrap {
            position: relative;
        }

        .form-input-wrap .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            stroke: rgba(255, 255, 255, 0.35);
            pointer-events: none;
            transition: stroke 0.2s;
            z-index: 1;
        }

        .form-input-wrap:focus-within .input-icon {
            stroke: var(--cyan-400);
        }

        .form-input {
            width: 100%;
            padding: 12px 14px 12px 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: white;
            font-family: 'Bricolage Grotesque', sans-serif;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.25);
        }

        .form-input:focus {
            border-color: rgba(34, 211, 238, 0.5);
            background: rgba(34, 211, 238, 0.05);
            box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
        }

        .form-input.no-icon {
            padding-left: 14px;
        }

        /* Select input */
        .form-select {
            width: 100%;
            padding: 12px 14px 12px 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: white;
            font-family: 'Bricolage Grotesque', sans-serif;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
            appearance: none;
            cursor: pointer;
        }

        .form-select:focus {
            border-color: rgba(34, 211, 238, 0.5);
            background: rgba(34, 211, 238, 0.05);
            box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
        }

        .form-select option {
            background: #1e293b;
            color: white;
        }

        .select-arrow {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            stroke: rgba(255, 255, 255, 0.35);
            pointer-events: none;
        }

        /* Forgot password row */
        .form-footer-row {
            display: flex;
            justify-content: flex-start;
            margin-top: -4px;
        }

        .link-btn {
            color: var(--cyan-400);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
        }

        .link-btn:hover {
            color: var(--cyan-400);
            text-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
            opacity: 0.85;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
        }

        .password-toggle svg {
            width: 16px;
            height: 16px;
            stroke: rgba(255, 255, 255, 0.35);
            transition: stroke 0.2s;
        }

        .password-toggle:hover svg {
            stroke: rgba(255, 255, 255, 0.7);
        }

        /* --- PASSWORD STRENGTH --- */
        .password-strength {
            margin-top: 6px;
        }

        .strength-bars {
            display: flex;
            gap: 4px;
            margin-bottom: 4px;
        }

        .strength-bar {
            flex: 1;
            height: 3px;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.1);
            transition: background 0.3s;
        }

        .strength-bar.weak { background: #ef4444; }
        .strength-bar.fair { background: #f59e0b; }
        .strength-bar.good { background: #22d3ee; }
        .strength-bar.strong { background: #10b981; }

        .strength-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            transition: color 0.3s;
        }

        /* --- TERMS --- */
        .terms-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 2px;
        }

        .terms-checkbox {
            width: 16px;
            height: 16px;
            min-width: 16px;
            margin-top: 2px;
            appearance: none;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
        }

        .terms-checkbox:checked {
            background: linear-gradient(to bottom right, var(--cyan-500), var(--blue-500));
            border-color: transparent;
        }

        .terms-checkbox:checked::after {
            content: '';
            display: block;
            width: 9px;
            height: 6px;
            border-left: 2px solid white;
            border-bottom: 2px solid white;
            transform: rotate(-45deg) translateY(-1px);
            position: absolute;
        }

        .terms-text {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
            line-height: 1.5;
        }

        .terms-text a {
            color: var(--cyan-400);
            text-decoration: none;
        }

        .terms-text a:hover {
            opacity: 0.75;
        }

        /* --- SUBMIT BUTTON --- */
        .btn-primary {
            width: 100%;
            padding: 13px;
            margin-top: 4px;
            background: linear-gradient(to right, var(--cyan-500), var(--blue-500));
            border: none;
            border-radius: 10px;
            color: white;
            font-family: 'Bricolage Grotesque', sans-serif;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .btn-primary::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.1);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .btn-primary:hover::after {
            opacity: 1;
        }

        .btn-primary:hover {
            box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
            transform: translateY(-1px);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        /* --- DIVIDER --- */
        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 4px 0;
        }

        .divider-line {
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .divider-text {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.35);
        }

        /* --- LOGIN LINK --- */
        .auth-switch {
            text-align: center;
            margin-top: 8px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
        }

        .auth-switch a {
            color: var(--cyan-400);
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.2s;
        }

        .auth-switch a:hover {
            opacity: 0.75;
        }

        /* --- ERROR STATE --- */
        .form-error {
            font-size: 12px;
            color: #f87171;
            display: none;
            padding: 10px 14px;
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.2);
            border-radius: 8px;
        }

        .form-error.visible {
            display: block;
        }

        /* --- STEP INDICATOR --- */
        .step-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
        }

        .step-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            transition: all 0.3s;
        }

        .step-dot.active {
            background: var(--cyan-400);
            width: 24px;
            border-radius: 4px;
        }

        .step-dot.done {
            background: var(--blue-400);
        }

.auth-signup .auth-card {
    max-width: 460px;
}


.server-error {
    font-size: 12px;
    color: #f87171;
    padding: 10px 14px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px 0;
}

.success-state.visible {
    display: flex;
}

.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.success-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--cyan-400);
}

.strength-bar {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.strength-segment {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.strength-label {
    font-size: 12px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.5);
}

