/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;600&display=swap');

/* Basic Body & Typography */
body {
    font-family: 'Bai Jamjuree', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.login-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Bai Jamjuree', sans-serif; /* กำหนดฟอนต์สำหรับ input */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Button Styles */
.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Bai Jamjuree', sans-serif; /* กำหนดฟอนต์สำหรับ button */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
    text-align: left;
    font-size: 0.9rem;
}