
        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --accent: #06b6d4;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --dark: #0f172a;
            --light: #f8fafc;
            --card-bg: rgba(255, 255, 255, 0.99);
            --card-border: rgba(99, 102, 241, 0.1);
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --border-color: rgba(148, 163, 184, 0.3);
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
            --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
            --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
        }

        body {
            font-family: 'Sora', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #ddd6fe 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            color: var(--text-primary);
        }

        /* Animated background blobs */
        .bg-blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.18;
            animation: blobFloat 8s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }
        .bg-blob-1 { width: 500px; height: 500px; background: var(--primary); top: -150px; left: -150px; animation-delay: 0s; }
        .bg-blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -120px; right: -100px; animation-delay: 3s; }
        .bg-blob-3 { width: 300px; height: 300px; background: var(--success); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1.5s; }

        @keyframes blobFloat {
            0%, 100% { transform: scale(1) translate(0,0); }
            33% { transform: scale(1.05) translate(10px,-15px); }
            66% { transform: scale(0.95) translate(-10px,10px); }
        }

        /* Auth Wrapper */
        .auth-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 460px;
            padding: 20px;
        }

        /* Logo */
        .auth-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: center;
            margin-bottom: 32px;
            font-family: 'Playfair Display', serif;
            font-size: 26px;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.5px;
        }
        .auth-logo i {
            font-size: 28px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Card */
        .auth-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            position: relative;
        }

        /* Decorative top gradient line */
        .auth-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
        }

        /* Tab switcher */
        .auth-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }
        .auth-tab {
            flex: 1;
            padding: 16px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
            user-select: none;
        }
        .auth-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: var(--bg-primary);
        }
        .auth-tab:hover:not(.active) {
            color: var(--primary);
            background: rgba(99,102,241,0.04);
        }

        /* Panel container */
        .panels-container {
            position: relative;
        }

        /* Individual panels */
        .auth-panel {
            padding: 36px 36px 32px;
            display: none;
            animation: panelIn 0.4s cubic-bezier(0.4,0,0.2,1);
        }
        .auth-panel.active {
            display: block;
        }

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

        /* Panel heading */
        .panel-title {
            font-family: 'Playfair Display', serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
            letter-spacing: -0.5px;
        }
        .panel-sub {
            font-size: 13.5px;
            color: var(--text-secondary);
            margin-bottom: 28px;
            font-weight: 400;
        }

        /* Form groups */
        .form-group {
            margin-bottom: 18px;
        }
        .form-label {
            display: block;
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 8px;
        }
        .input-wrap {
            position: relative;
        }
        .input-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 14px;
            transition: color 0.3s;
        }
        .input-wrap input {
            width: 100%;
            padding: 12px 14px 12px 40px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            font-family: 'Sora', sans-serif;
            font-size: 14px;
            color: var(--text-primary);
            background: rgba(99,102,241,0.03);
            outline: none;
            transition: all 0.3s;
        }
        .input-wrap input::placeholder { color: #94a3b8; }
        .input-wrap input:focus {
            border-color: var(--primary);
            background: rgba(99,102,241,0.06);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
        }
        .input-wrap input:focus + i,
        .input-wrap:focus-within i { color: var(--primary); }
        /* Icon on right (password toggle) */
        .input-wrap .eye-btn {
            position: absolute;
            right: 14px;
            left: auto;
            transform: translateY(-50%);
            cursor: pointer;
            font-size: 14px;
        }

        /* Row for two inputs */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        /* Forgot link */
        .forgot-link {
            display: block;
            text-align: right;
            font-size: 12.5px;
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
            margin-top: -10px;
            margin-bottom: 22px;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .forgot-link:hover { opacity: 0.75; }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 22px 0;
            color: var(--text-secondary);
            font-size: 12px;
        }
        .divider::before, .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-color);
        }

        /* Social buttons */
        .social-btns { display: flex; gap: 12px; margin-bottom: 6px; }
        .social-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            font-family: 'Sora', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            background: var(--bg-secondary);
            cursor: pointer;
            transition: all 0.3s;
        }
        .social-btn:hover {
            border-color: var(--primary);
            background: rgba(99,102,241,0.06);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        .social-btn .fab { font-size: 16px; }
        .social-btn .fa-google { color: #ea4335; }
        .social-btn .fa-github { color: #24292e; }

        /* Primary button */
        .btn-primary {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
            border: none;
            border-radius: 12px;
            font-family: 'Sora', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
            margin-top: 6px;
        }
        .btn-primary::after {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            width: 0; height: 0;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            transform: translate(-50%,-50%);
            transition: width 0.5s, height 0.5s, opacity 0.5s;
            opacity: 0;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99,102,241,0.4);
        }
        .btn-primary:active::after {
            width: 300px; height: 300px; opacity: 0;
        }

        /* Terms text */
        .terms-text {
            font-size: 11.5px;
            color: var(--text-secondary);
            text-align: center;
            margin-top: 18px;
            line-height: 1.6;
        }
        .terms-text a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        /* Back link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.2s;
            margin-bottom: 24px;
            font-weight: 500;
        }
        .back-link:hover { color: var(--primary); }

        /* Password strength */
        .strength-bar {
            display: flex;
            gap: 4px;
            margin-top: 8px;
        }
        .strength-seg {
            flex: 1;
            height: 3px;
            border-radius: 2px;
            background: var(--border-color);
            transition: background 0.4s;
        }
        .strength-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* Success state for forgot password */
        .success-msg {
            display: none;
            text-align: center;
            padding: 10px 0;
            animation: panelIn 0.4s ease;
        }
        .success-msg .success-icon {
            width: 64px; height: 64px;
            background: linear-gradient(135deg, var(--success), #34d399);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 18px;
            font-size: 26px;
            color: white;
            box-shadow: 0 8px 20px rgba(16,185,129,0.35);
        }
        .success-msg h3 {
            font-family: 'Playfair Display', serif;
            font-size: 20px;
            color: var(--text-primary);
            margin-bottom: 10px;
        }
        .success-msg p {
            font-size: 13.5px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Password rules */
        .pw-rules { margin-top: 12px; }
        .pw-rule {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
            transition: color 0.3s;
        }
        .pw-rule i { font-size: 11px; }
        .pw-rule.ok { color: var(--success); }

        /* Responsive */
        @media (max-width: 520px) {
            .auth-panel { padding: 28px 22px 24px; }
            .form-row { grid-template-columns: 1fr; }
        }