        body {
            margin: 0;
            padding: 0;
            background: #f7f9fb;
            min-height: 100vh;
            font-family: 'Kanit', 'Segoe UI', Arial, sans-serif;
        }

        .navbar {
            width: 100%;
            background: #fff;
            box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 48px;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10;
        }

        .navbar .brand {
            font-size: 1.35rem;
            font-weight: 500;
            color: #2d3a4a;
            letter-spacing: 0.5px;
        }

        .center-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .forgot-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 32px 0 rgba(60, 72, 88, 0.10);
            padding: 40px 32px 32px 32px;
            width: 100%;
            max-width: 400px;
            margin-top: 60px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .forgot-card .logo {
            width: 80px;
        }

        .forgot-card .title {
            font-size: 1.5rem;
            font-weight: 500;
            color: #2d3a4a;
            margin-bottom: 4px;
            text-align: center;
        }

        .forgot-card .subtitle {
            font-size: 1rem;
            color: #6c757d;
            margin-bottom: 16px;
            text-align: center;
        }

        .forgot-card form {
            width: 100%;
        }

        .forgot-card label {
            font-size: 0.95rem;
            color: #6c757d;
            margin-bottom: 4px;
            margin-top: 12px;
            display: block;
            font-weight: 500;
        }

        .forgot-card .input-group {
            position: relative;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
        }

        .forgot-card .input-group input[type="email"] {
            width: 100%;
            padding: 10px 12px 10px 38px;
            border: 1px solid #dbe2ea;
            border-radius: 5px;
            font-size: 1rem;
            background: #f7f9fb;
            color: #2d3a4a;
            transition: border 0.2s;
            outline: none;
            font-family: 'Kanit', 'Segoe UI', Arial, sans-serif;
        }

        .forgot-card .input-group i.fas.fa-envelope {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #b0b8c1;
            font-size: 1rem;
            pointer-events: none;
        }

        .forgot-card .forgot-btn {
            width: auto;
            min-width: 100px;
            float: right;
            display: block;
            margin-left: auto;
            margin-top: 8px;
            background: #4285f4;
            color: #fff;
            border: none;
            border-radius: 5px;
            padding: 10px 28px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }

        .forgot-card .forgot-btn:hover {
            background: #1976d2;
        }

        .forgot-card .link-button {
            display: block;
            text-align: center;
            color: #4285f4;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            margin-top: 20px;
        }

        .forgot-card .link-button:hover {
            text-decoration: underline;
        }

        .forgot-card .error,
        .forgot-card .success {
            width: 100%;
            margin-bottom: 12px;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
            font-size: 0.95rem;
        }

        .forgot-card .error {
            background: #fdeaea;
            color: #d32f2f;
        }

        .forgot-card .success {
            background: #eafaf1;
            color: #388e3c;
        }

        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1000;
        }

        .popup-box {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #ffffff;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            width: 380px;
            text-align: center;
            font-family: 'Kanit', sans-serif;
        }

        .timer-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: #4285f4;
            animation: timer 5s linear forwards;
        }

        @keyframes timer {
            from {
                width: 100%;
            }

            to {
                width: 0%;
            }
        }

        .popup-title {
            color: #4285f4;
            font-size: 22px;
            font-weight: 600;
            margin-top: 15px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .popup-content {
            color: #1A2526;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 20px;
            text-align: left;
        }

        .error-icon {
            display: block;
            font-size: 40px;
            color: #d32f2f;
            margin: 0 auto 10px;
        }

        #errorPopup .popup-title,
        #errorPopup .popup-content {
            color: #d32f2f;
        }

        .popup-action-button {
            background: #4285f4;
            color: #ffffff;
            border: none;
            padding: 10px 25px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: background 0.3s ease;
            font-family: 'Kanit', sans-serif;
            margin: 5px;
        }

        .popup-action-button:hover {
            background: #1976d2;
        }

        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1001;
        }

        .loading-box {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #ffffff;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            text-align: center;
            font-family: 'Kanit', sans-serif;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #4285f4;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            color: #4285f4;
            font-size: 16px;
            font-weight: 500;
        }

        @media (max-width: 600px) {
            .navbar {
                padding: 0 16px;
            }

            .forgot-card {
                padding: 28px 8px 24px 8px;
            }
        }

/* ===== Shared dashboard theme ===== */
* { box-sizing: border-box; }

body {
    background: #eef1f5;
    color: #3b4252;
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
}

.topbar {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid #e7eaf0;
    box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.topbar-logo {
    color: #1f4e8c;
    font-size: 17px;
    font-weight: 700;
}
.topbar-logo span { color: #2f7bf6; }
.topbar-title {
    color: #6b7280;
    font-size: 13px;
    border-left: 1px solid #e7eaf0;
    padding-left: 12px;
}

.main.fp-center {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.right {
    width: 100%;
    max-width: 480px;
}
.login-card {
    width: 100%;
    max-width: none;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    padding: 30px 34px 26px;
    box-shadow: 0 8px 24px rgba(31,78,140,.08);
}
.login-card-hd { color: #3b4252; }
.login-card-hd .material-symbols-outlined { color: #2f7bf6; }
.fp-form-body { padding: 18px 0 4px; }
.fp-subtitle { color: #6b7280; }

.inp-row input {
    border-color: #e7eaf0;
    background: #fff;
    color: #3b4252;
    font-family: inherit;
}
.inp-row input:focus {
    border-color: #2f7bf6;
    box-shadow: 0 0 0 3px rgba(47,123,246,.12);
}
.inp-icon { color: #2f7bf6; }
.btn-pill {
    background: #2f7bf6;
    border-radius: 8px;
    font-family: inherit;
}
.btn-pill:hover { background: #2564d6; }
.btn-pill:disabled { background: #9db7e4; }
.otp-boxes input:focus { border-color: #2f7bf6; box-shadow: 0 0 0 3px rgba(47,123,246,.12); }
.otp-resend-btn, .fp-back-link { color: #2564d6; font-family: inherit; }
.choose-account-card, .choose-method-list { border-color: #e7eaf0; }
.choose-method-item { border-bottom-color: #e7eaf0; }
.choose-method-item:hover { background: #f2f6fc; }
.choose-method-item input[type="radio"] { accent-color: #2f7bf6; }
.choose-account-name, .choose-method-title { color: #3b4252; }
.choose-account-sub, .choose-method-sub { color: #6b7280; }

.card-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.card-links a { color: #6b7280; font-family: inherit; }
.card-links a:hover { color: #2564d6; }
.footer {
    padding: 0 20px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 600px) {
    .topbar { padding: 0 16px; }
    .topbar-title { display: none; }
    .main.fp-center { padding: 22px 14px 30px; }
    .login-card { padding: 26px 20px 22px; }
}

/* Match the login page shell exactly */
.split {
    min-height: 100vh;
    display: flex;
    background: #eef1f5;
}
.split-left {
    flex: 0 0 42%;
    padding: 56px 64px 40px;
    clip-path: none;
}
.split-right {
    flex: 1;
    min-width: 0;
    padding: 40px 36px;
    background: #eef1f5;
}
.split-right > .main {
    width: 100%;
}
.main.fp-center {
    min-height: 100%;
    padding: 0;
}
.right {
    width: 100%;
    max-width: 680px !important;
}
.main.fp-center .right {
    flex: 1 1 680px;
}
.login-card {
    width: 100% !important;
    max-width: 680px !important;
    padding: 34px 36px 30px;
}
.footer { display: none; }

@media (max-width: 900px) {
    .split { flex-direction: column; }
    .split-left { flex: 0 0 auto; padding: 44px 40px 32px; }
    .split-right { padding: 32px 22px 40px; }
}

@media (max-width: 700px) {
    .split-left { padding: 36px 26px 30px; }
    .split-right { padding: 28px 16px 34px; }
    .login-card { padding: 28px 22px 24px; }
}