* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-color: var(--brand, #14a800);
    --text-color: #393a3d;
}

body {
    background-color: #ffffff;
    background-image: url("../img/background/forgot01.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forgot-card {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.forgot-logo {
    text-align: center;
    margin-bottom: 10px;
}

.forgot-logo img {
    height: 50px;
}

.forgot-title {
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #838383;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.system-title {
    text-align: center;
    color: #393a3d;
    font-size: 24px;
    font-weight: 600;
    padding-top: 10px;
    margin-bottom: 10px;
}

.forgot-description {
    text-align: center;
    color: #6b6c72;
    font-size: 14px;
    margin-bottom: 25px;
}

/* จัดให้ข้อความอยู่ตรงกลาง */
.forgot-card > div:nth-child(3) {
    text-align: center;
    margin-bottom: 25px;
}

.forgot-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b6c72;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.forgot-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.forgot-btn:hover {
    background-color: var(--brand-hover, #128f00);
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link p {
    font-size: 14px;
    color: #6b6c72;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

.forgot-footer {
    margin-top: 20px;
    text-align: center;
}

.forgot-footer p {
    font-size: 12px;
    color: #ffffff;
}

@media (max-width: 480px) {
    .forgot-card {
        padding: 20px;
    }
    
    .forgot-logo img {
        height: 40px;
    }
} 
/* ===== Background illustration in the theme color (assets/js/theme.js) =====
   No custom color → the original image above. With a color: the login01 pattern recolored —
   CSS filter first, then the exact canvas recolor (html[data-theme-bg]) once it is ready. */
html[data-theme-color] body { background-image: none !important; }
html[data-theme-color] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../img/background/login01.webp") center / cover no-repeat;
    filter: hue-rotate(var(--brand-bg-hue, 0deg)) saturate(var(--brand-bg-sat, 1));
}
html[data-theme-color][data-theme-bg] body::before {
    background-image: var(--brand-bg-image);
    filter: none;
}
