/* --- [ใหม่] ดีไซน์สำหรับ Alibellum Gateway --- */
:root {
    --brand-primary: #e58c8a; /* สีชมพูอมส้ม อบอุ่น */
    --brand-secondary: #3e3846; /* สีเทาเข้มอมม่วง ลึกลับ */
    --text-light: #f5f5f5;
    --text-dark: #3e3846;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}
* { box-sizing: border-box; }
body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=2070'); /* URL รูปห้องสมุดสวยๆ (พี่ปุ๊เปลี่ยนได้เลย) */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}
.gateway-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.gateway-header {
    text-align: center;
    margin-bottom: 30px;
}
.gateway-header i {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}
.gateway-header h1 {
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.gateway-header p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Kanit';
    color: var(--text-light);
    transition: all 0.3s;
}
.form-control::placeholder { color: rgba(245, 245, 245, 0.6); }
.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(229, 140, 138, 0.3);
}
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    font-size: 0.9rem;
}
.form-options a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.form-options a:hover { opacity: 1; }
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--brand-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-login:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(229, 140, 138, 0.3);
}
.register-link {
    text-align: center;
    margin-top: 30px;
    opacity: 0.8;
}
.register-link a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
}
.error-message {
    background-color: rgba(231, 76, 60, 0.8);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- [ใหม่] Toast Message for Success --- */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71; /* สีเขียวแห่งความสำเร็จ */
    color: white;
    padding: 16px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
/* Responsive */
@media (max-width: 480px) {
    .gateway-container { padding: 30px; }
}