* {
    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/registration01.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;
}

.system-title {
    text-align: center;
    color: #929292;
}

.register-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-card {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.register-logo {
    text-align: center;
    margin-bottom: 20px;
}

.register-logo img {
    height: 50px;
}

/* จัดให้ข้อความอยู่ตรงกลาง */
.register-card > div:nth-child(2) {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 600;
}

.register-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b6c72;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b6c72;
}

.toggle-password i {
    font-size: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    font-size: 14px;
    color: #6b6c72;
}

.form-group label a,
.remember-me label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-group label a:hover,
.remember-me label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-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;
}

.register-btn:hover {
    background-color: var(--brand-hover, #128f00);
}

.separator {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.separator::before, 
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e5e5e5;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.separator span {
    display: inline-block;
    padding: 0 10px;
    background-color: white;
    position: relative;
    color: #6b6c72;
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.social-login button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-login button:hover {
    background-color: #f8f8f8;
}

.social-login img {
    height: 20px;
    margin-right: 10px;
}

.social-login span {
    font-size: 14px;
    color: var(--text-color);
}

.login-link {
    text-align: center;
}

.login-link p {
    font-size: 14px;
    color: #6b6c72;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.register-footer {
    margin-top: 20px;
    text-align: center;
}

.register-footer p {
    font-size: 12px;
    color: #6b6c72;
}

@media (max-width: 480px) {
    .register-card {
        padding: 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .register-logo img {
        height: 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
}

input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-body h4 {
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
} 
/* ===== 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;
}
