﻿.login-container {
    width: 440px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(40, 52, 121, 0.05), 0 10px 25px rgba(40, 52, 121, 0.1);
    padding: 48px 40px;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

    .logo-section img {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }

    .logo-section h1 {
        font-size: 24px;
        font-weight: 600;
        color: #283479;
        margin-bottom: 8px;
    }

    .logo-section p {
        font-size: 14px;
        color: #6b7280;
    }

.error-message {
    color: #dc2626;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

    .error-message:empty {
        display: none;
    }


.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required-star {
    color: #dc2626;
    margin-left: 2px;
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Suwannaphum', sans-serif;
}

    .form-input:hover {
        border-color: #d1d5db;
    }

    .form-input:focus {
        background-color: #ffffff;
        border-color: #283479;
        box-shadow: 0 0 0 3px rgba(40, 52, 121, 0.1);
    }

.validation-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.remember-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

    .checkbox-wrapper input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        cursor: pointer;
        accent-color: #283479;
    }

.checkbox-label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #283479 0%, #1e2659 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Khmer MEF1', 'Inter', sans-serif;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #1e2659 0%, #151a42 100%);
        box-shadow: 0 4px 12px rgba(40, 52, 121, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.footer-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn-link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

    .btn-link:hover {
        color: #283479;
        text-decoration: underline;
    }

@media (max-width: 576px) {
    body {
        background: #ffffff;
        padding: 0;
    }

    .login-card {
        box-shadow: none;
        border-radius: 0;
        padding: 32px 24px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo-section img {
        width: 100px;
        height: 100px;
    }

    .logo-section h1 {
        font-size: 20px;
    }

    .logo-section p {
        font-size: 13px;
    }
}

.cf-turnstile {
    max-width: 100%;
}
