
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #111118;
            --bg-card: #16161f;
            --bg-card-hover: #1c1c28;
            --accent: #2dd4a8;
            --accent-light: #5eecc8;
            --accent-dark: #1aab87;
            --blue: #4a90d9;
            --text-primary: #ffffff;
            --text-secondary: #e2ded6;
            --text-muted: #b9b3a8;
            --border: rgba(45, 212, 168, 0.12);
            --border-light: rgba(45, 212, 168, 0.25);
            --danger: #e74c5e;
        }
        html { height: 100%; }
        body {
            font-family: 'Inter', 'Noto Sans SC', 'Noto Sans Thai', -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh; display: flex; align-items: center; justify-content: center;
            position: relative; overflow-x: hidden;
            padding: 2rem 0;
        }
        body::before {
            content: ''; position: fixed; inset: 0;
            background:
                radial-gradient(ellipse 60% 50% at 80% 50%, rgba(45,212,168,0.06), transparent 70%),
                radial-gradient(ellipse 50% 50% at 20% 30%, rgba(74,144,217,0.05), transparent 60%);
        }
        .grid-bg {
            position: fixed; inset: 0; opacity: 0.03;
            background-image:
                linear-gradient(var(--accent) 1px, transparent 1px),
                linear-gradient(90deg, var(--accent) 1px, transparent 1px);
            background-size: 80px 80px;
        }
        .orb {
            position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.06;
            animation: floatOrb 20s ease-in-out infinite alternate;
        }
        .orb-1 { width: 350px; height: 350px; background: var(--blue); top: -10%; right: -5%; }
        .orb-2 { width: 250px; height: 250px; background: var(--accent); bottom: -10%; left: -5%; animation-delay: -10s; }
        @keyframes floatOrb {
            0% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -20px) scale(1.1); }
            100% { transform: translate(-15px, 15px) scale(0.95); }
        }

        .auth-container {
            position: relative; z-index: 2; width: 100%; max-width: 520px;
            padding: 0 1.5rem;
            animation: fadeInUp 0.8s ease-out;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .auth-card {
            background: rgba(22, 22, 31, 0.8);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 20px; padding: 2.5rem 2.5rem;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }

        .auth-logo {
            display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem;
        }
        .auth-logo img { height: 42px; width: auto; }
        .auth-logo a { text-decoration: none; }

        .auth-header { text-align: center; margin-bottom: 1.75rem; }
        .auth-header h1 {
            font-family: 'Playfair Display', serif;
            font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem;
        }
        .auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

        /* Steps indicator */
        .steps {
            display: flex; align-items: center; justify-content: center; gap: 0.5rem;
            margin-bottom: 2rem;
        }
        .step-dot {
            width: 10px; height: 10px; border-radius: 50%;
            background: var(--border); transition: all 0.4s;
        }
        .step-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }
        .step-line { width: 30px; height: 2px; background: var(--border); }

        /* Section dividers */
        .section-label {
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 2px; color: var(--accent); margin-bottom: 1rem;
            margin-top: 1.5rem; padding-bottom: 0.4rem;
            border-bottom: 1px solid var(--border);
        }
        .section-label:first-of-type { margin-top: 0; }

        .form-group { margin-bottom: 1rem; }
        .form-group label {
            display: block; font-size: 0.78rem; font-weight: 600;
            color: var(--text-secondary); margin-bottom: 0.4rem;
            text-transform: uppercase; letter-spacing: 1px;
        }
        .form-hint {
            font-size: 0.7rem; color: var(--text-muted); font-weight: 400;
            text-transform: none; letter-spacing: 0; margin-left: 0.25rem;
        }
        .input-wrapper {
            position: relative; display: flex; align-items: center;
        }
        .input-wrapper svg {
            position: absolute; left: 1rem; width: 18px; height: 18px;
            color: var(--text-muted); pointer-events: none;
        }
        .form-input {
            width: 100%; padding: 0.8rem 1rem 0.8rem 2.75rem;
            border-radius: 10px; border: 1px solid var(--border);
            background: var(--bg-primary); color: var(--text-primary);
            font-size: 0.92rem; font-family: inherit; outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .form-input::placeholder { color: var(--text-muted); }
        .form-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(45,212,168,0.1);
        }
        .form-input.no-icon { padding-left: 1rem; }

        /* Custom select styling */
        .form-select {
            width: 100%; padding: 0.8rem 2.5rem 0.8rem 2.75rem;
            border-radius: 10px; border: 1px solid var(--border);
            background: var(--bg-primary); color: var(--text-primary);
            font-size: 0.92rem; font-family: inherit; outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            appearance: none; cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a958c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
        }
        .form-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(45,212,168,0.1);
        }
        .form-select option { background: var(--bg-card); color: var(--text-primary); }

        .form-row { display: flex; gap: 0.75rem; }
        .form-row .form-group { flex: 1; }

        /* Phone row: country code + number */
        .phone-row { display: flex; gap: 0.5rem; }
        .phone-row .dial-code { flex: 0 0 140px; }
        .phone-row .phone-number { flex: 1; }
        .dial-select {
            width: 100%; padding: 0.8rem 0.5rem 0.8rem 2.75rem;
            border-radius: 10px; border: 1px solid var(--border);
            background: var(--bg-primary); color: var(--text-primary);
            font-size: 0.82rem; font-family: inherit; outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            appearance: none; cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a958c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
        }
        .dial-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(45,212,168,0.1);
        }
        .dial-select option { background: var(--bg-card); color: var(--text-primary); }

        /* OTP row */
        .otp-row { display: flex; gap: 0.5rem; align-items: flex-end; }
        .otp-row .form-group { flex: 1; margin-bottom: 0; }
        .otp-row .btn-otp {
            flex-shrink: 0; padding: 0.8rem 1.15rem; border-radius: 10px; border: none;
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: var(--bg-primary); font-weight: 700; font-size: 0.78rem;
            letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer;
            font-family: inherit; transition: all 0.3s; white-space: nowrap;
            height: 46px; margin-bottom: 0;
        }
        .otp-row .btn-otp:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(45,212,168,0.3); }
        .otp-row .btn-otp:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        .password-toggle {
            position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
            display: flex; align-items: center; justify-content: center;
            background: none; border: none; line-height: 0;
            color: var(--text-muted); cursor: pointer; padding: 4px;
            transition: color 0.3s;
        }
        .password-toggle:hover { color: var(--accent); }
        .password-toggle svg { width: 18px; height: 18px; position: static; }
        /* Hide the browser's built-in password reveal/clear control (Edge/IE) so only the
           custom eye toggle shows — otherwise two eye icons overlap and look misaligned. */
        .form-input::-ms-reveal, .form-input::-ms-clear { display: none; }

        /* Password strength */
        .password-strength {
            display: flex; gap: 4px; margin-top: 0.5rem;
        }
        .strength-bar {
            flex: 1; height: 3px; border-radius: 2px;
            background: var(--border); transition: background 0.3s;
        }
        .strength-bar.weak { background: var(--danger); }
        .strength-bar.medium { background: #f0a030; }
        .strength-bar.strong { background: var(--accent); }

        /* Terms */
        .terms-check {
            display: flex; align-items: flex-start; gap: 0.6rem;
            margin: 1.5rem 0; font-size: 0.83rem; color: var(--text-secondary);
            line-height: 1.5;
        }
        .terms-check input[type="checkbox"] {
            width: 16px; height: 16px; min-width: 16px; margin-top: 2px;
            accent-color: var(--accent); cursor: pointer;
        }
        .terms-check a { color: var(--accent); text-decoration: none; }
        .terms-check a:hover { color: var(--accent-light); }

        .btn-submit {
            width: 100%; padding: 0.95rem; border-radius: 10px; border: none;
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: var(--bg-primary); font-weight: 700; font-size: 0.95rem;
            letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
            transition: all 0.35s; font-family: inherit;
            box-shadow: 0 4px 20px rgba(45,212,168,0.25);
        }
        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 35px rgba(45,212,168,0.4);
        }
        .btn-submit:active { transform: translateY(0); }


        .auth-switch {
            text-align: center; margin-top: 1.75rem; font-size: 0.9rem;
            color: var(--text-secondary);
        }
        .auth-switch a {
            color: var(--accent); text-decoration: none; font-weight: 600;
            transition: color 0.3s;
        }
        .auth-switch a:hover { color: var(--accent-light); }

        .back-home {
            display: flex; align-items: center; justify-content: center; gap: 0.5rem;
            margin-top: 1.5rem; text-align: center;
        }
        .back-home a {
            color: var(--text-muted); text-decoration: none; font-size: 0.8rem;
            display: flex; align-items: center; gap: 0.4rem;
            transition: color 0.3s;
        }
        .back-home a:hover { color: var(--accent); }
        .back-home svg { width: 14px; height: 14px; }

        .auth-lang {
            position: fixed; top: 1.5rem; right: 1.5rem; z-index: 10;
        }
        .auth-lang select {
            padding: 0.4rem 0.75rem; border-radius: 6px;
            border: 1px solid var(--border); background: var(--bg-card);
            color: var(--text-secondary); font-size: 0.8rem; font-family: inherit;
            cursor: pointer; outline: none; appearance: auto;
        }
        .auth-lang select:focus { border-color: var(--accent); }

        /* Close button */
        .close-btn {
            position: absolute; top: 1.25rem; right: 1.25rem;
            width: 36px; height: 36px; border-radius: 50%;
            border: 1px solid var(--border); background: rgba(10, 10, 15, 0.6);
            color: var(--text-muted); cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.3s; text-decoration: none; z-index: 5;
        }
        .close-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(45, 212, 168, 0.08); }
        .close-btn svg { width: 18px; height: 18px; }

        .auth-card { position: relative; }

        @media (max-width: 500px) {
            .auth-card { padding: 2rem 1.5rem; }
            .form-row { flex-direction: column; gap: 0; }
            .phone-row { flex-direction: column; }
            .phone-row .dial-code { flex: 1; }
            .otp-row { flex-direction: column; }
            .otp-row .btn-otp { width: 100%; height: auto; margin-bottom: 0.5rem; }
        }
    