/* "ล้าง" ค่าเริ่มต้นของเบราว์เซอร์ */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #fff; /* ตั้งค่าตัวหนังสือหลักเป็นสีขาว */
}

/* "ประตูมิติ" (พื้นหลัง) */
.auth-background {
    background-image: url('https://i.imgur.com/g8VUcAm.jpeg'); /* (พื้นหลังป่าเวทมนตร์) */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* "การ์ด" (กล่อง Login/Register) */
.auth-container {
    background: rgba(0, 0, 0, 0.85); /* พื้นหลังสีดำ... กึ่งโปร่งใส */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 350px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    color: #00e0ff; /* (สีธีม Diamond) */
}

/* "ช่องกรอก" (Form Group) */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box; 
}

/* "ปุ่ม" (Button) */
.auth-button {
    width: 100%;
    padding: 12px;
    background: #007bff; /* (สีปุ่ม Login) */
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* (นี่คือปุ่ม "สมัคร" ... สีเขียว) */
.auth-button.register {
    background: #28a745; 
}

.auth-button:hover {
    background-color: #0056b3; 
}
.auth-button.register:hover {
    background-color: #218838;
}

/* "ลิงก์" (ลืมรหัส) */
.auth-links {
    margin-top: 20px;
}
.auth-links p {
    margin-bottom: 5px;
}
.auth-links a {
    color: #00e0ff; /* (สีธีม Diamond) */
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* "กล่อง Error" */
#error-message-box {
    color: #ff4d4d; 
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none; /* (ซ่อนไว้) */
}