        :root {
            --navy: #0f2d5c;
            --blue: #1a56db;
            --blue-lt: #2563eb;
            --sky: #e8f0fe;
            --sky-mid: #c7d9f9;
            --white: #ffffff;
            --off-white: #f5f7fa;
            --black: #0d1117;
            --grey-700: #374151;
            --grey-500: #6b7280;
            --grey-300: #d1d5db;
            --grey-100: #f3f4f6;
            --error: #dc2626;
            --success: #16a34a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Kanit', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-y: hidden;
        }

        .right-panel {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
        }

        .form-wrapper {
            width: 100%;
            max-width: 600px;
            background: var(--white);
            border-radius: 16px;
            padding: 40px 40px 36px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
            animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(16px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Step indicator ── */
        .steps {
            display: flex;
            align-items: center;
            gap: 0;
            margin-bottom: 32px;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex: 1;
            position: relative;
        }

        .step-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid var(--grey-300);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--grey-500);
            transition: all 0.3s ease;
            z-index: 1;
        }

        .step.active .step-circle {
            border-color: var(--blue-lt);
            background: var(--blue-lt);
            color: white;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        }

        .step.done .step-circle {
            border-color: var(--success);
            background: var(--success);
            color: white;
        }

        .step-label {
            font-size: 11px;
            font-weight: 500;
            color: var(--grey-500);
            transition: color 0.3s;
            white-space: nowrap;
        }

        .step.active .step-label {
            color: var(--blue-lt);
        }

        .step.done .step-label {
            color: var(--success);
        }

        .step-line {
            flex: 1;
            height: 2px;
            background: var(--grey-300);
            margin-bottom: 18px;
            transition: background 0.4s ease;
        }

        .step-line.done {
            background: var(--success);
        }

        .step-line.active {
            background: var(--blue-lt);
        }

        /* ── Form header ── */
        .form-header {
            margin-bottom: 28px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 500;
            color: var(--grey-500);
            text-decoration: none;
            margin-bottom: 16px;
            transition: color 0.2s;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            font-family: 'Kanit', sans-serif;
        }

        .back-link:hover {
            color: var(--blue-lt);
        }

        .form-header h1 {
            font-size: 1.55rem;
            font-weight: 700;
            color: var(--black);
            letter-spacing: -0.01em;
            margin-bottom: 6px;
        }

        .form-header p {
            font-size: 13.5px;
            color: var(--grey-500);
            font-weight: 300;
            line-height: 1.7;
        }

        /* ── Input groups ── */
        .input-group {
            position: relative;
            margin-bottom: 18px;
        }

        .input-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--grey-700);
            margin-bottom: 6px;
        }

        .input-group input {
            width: 100%;
            background: var(--white);
            border: 1.5px solid var(--grey-300);
            border-radius: 8px;
            padding: 11px 14px;
            color: var(--black);
            font-size: 14.5px;
            font-family: 'Kanit', sans-serif;
            outline: none;
            transition: all 0.2s ease;
        }

        .input-group input::placeholder {
            color: var(--grey-300);
        }

        .input-group input:focus {
            border-color: var(--blue-lt);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .input-group.error input {
            border-color: var(--error);
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
        }

        .input-group.success input {
            border-color: var(--success);
            box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
        }

        .input-suffix {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
        }

        .password-toggle {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--grey-500);
            padding: 4px;
            display: flex;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: var(--blue-lt);
        }

        .error-message {
            font-size: 12px;
            color: var(--error);
            font-weight: 500;
            margin-top: 5px;
            opacity: 0;
            transform: translateY(-3px);
            transition: all 0.2s ease;
        }

        .error-message.show {
            opacity: 1;
            transform: none;
        }

        /* ── OTP input ── */
        .otp-container {
            display: flex;
            gap: 10px;
            margin-bottom: 6px;
        }

        .otp-input {
            flex: 1;
            text-align: center;
            font-size: 20px !important;
            font-weight: 700 !important;
            padding: 14px 8px !important;
            letter-spacing: 0.05em;
        }

        /* ── Password strength ── */
        .strength-bar {
            display: flex;
            gap: 4px;
            margin-top: 8px;
        }

        .strength-seg {
            flex: 1;
            height: 3px;
            border-radius: 99px;
            background: var(--grey-300);
            transition: background 0.3s ease;
        }

        .strength-label {
            font-size: 11.5px;
            font-weight: 500;
            color: var(--grey-500);
            margin-top: 5px;
            height: 16px;
            transition: color 0.3s;
        }

        /* ── Submit button ── */
        .submit-btn {
            width: 100%;
            background: var(--blue-lt);
            color: var(--white);
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            cursor: pointer;
            font-family: 'Kanit', sans-serif;
            font-size: 14.5px;
            font-weight: 600;
            letter-spacing: 0.01em;
            min-height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin-bottom: 14px;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .submit-btn:hover {
            background: var(--navy);
            box-shadow: 0 4px 16px rgba(15, 45, 92, 0.25);
            transform: translateY(-1px);
        }

        .submit-btn:active {
            transform: none;
        }

        .submit-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-text {
            transition: opacity 0.2s;
        }

        .btn-loader {
            position: absolute;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .submit-btn.loading .btn-text {
            opacity: 0;
        }

        .submit-btn.loading .btn-loader {
            opacity: 1;
        }

        /* ── Resend ── */
        .resend-row {
            text-align: center;
            font-size: 13px;
            color: var(--grey-500);
            font-weight: 300;
            margin-bottom: 4px;
        }

        .resend-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--blue-lt);
            font-weight: 500;
            font-size: 13px;
            font-family: 'Kanit', sans-serif;
            padding: 0;
            transition: color 0.2s;
        }

        .resend-btn:hover {
            color: var(--navy);
        }

        .resend-btn:disabled {
            color: var(--grey-500);
            cursor: not-allowed;
        }

        /* ── Info box ── */
        .info-box {
            background: var(--sky);
            border: 1px solid var(--sky-mid);
            border-radius: 8px;
            padding: 12px 14px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin-bottom: 20px;
            font-size: 13px;
            color: var(--navy);
            font-weight: 400;
            line-height: 1.7;
        }

        .info-box svg {
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* ── Note box ── */
        .note-box {
            font-size: 12.5px;
            color: var(--grey-500);
            line-height: 1.9;
            border-top: 1px solid var(--grey-300);
            padding-top: 16px;
            margin-top: 4px;
            font-weight: 300;
        }

        .note-box .note-title {
            font-weight: 600;
            color: var(--grey-700);
            margin-bottom: 4px;
            font-size: 13px;
        }

        /* ── Success ── */
        .success-screen {
            display: none;
            text-align: center;
            padding: 12px 0 8px;
            animation: fadeIn 0.4s ease both;
        }

        .success-screen.show {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        .success-icon {
            width: 64px;
            height: 64px;
            background: var(--blue-lt);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
            animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes pop {
            from {
                transform: scale(0);
            }

            to {
                transform: scale(1);
            }
        }

        .success-screen h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--black);
            margin-bottom: 8px;
        }

        .success-screen p {
            font-size: 13.5px;
            color: var(--grey-500);
            font-weight: 300;
            line-height: 1.7;
            margin-bottom: 24px;
        }

        .login-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 600;
            color: var(--blue-lt);
            text-decoration: none;
            transition: color 0.2s;
        }

        .login-link:hover {
            color: var(--navy);
        }

        /* ── Sections ── */
        .step-section {
            display: none;
        }

        .step-section.active {
            display: block;
            animation: fadeIn 0.35s ease both;
        }

        @media (max-width: 480px) {
            .form-wrapper {
                padding: 28px 20px 24px;
            }

            .otp-container {
                gap: 6px;
            }
        }