/* ===============================
   CSS VARIABLES
================================ */
:root {
    --background-light: #f0d6a742;
    --text-dark: #333;
    --text-light: #fff;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --border-radius-small: 8px;
    --border-radius-medium: 10px;
    --spacing-small: 10px;
    --spacing-medium: 20px;

    --primary-color: #894e3fe1;
    --secondary-color: #3e4b1079;
    --background-card: #ffffff;
    --text-color: #4d491b;
}

/* ===============================
   RESET & BODY
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('../img_bg/phu.jpg') no-repeat center center / cover;
    font-family: 'Kanit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
}

/* ===============================
   LAYOUT
================================ */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    backdrop-filter: blur(4px);
}

/* ===============================
   LOGIN BOX
================================ */
.login-box {
    background: #ecbc877b;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* ===============================
   TITLE
================================ */
.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
}

/* ===============================
   INPUT
================================ */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: 16px;
}

.input-group input::placeholder {
    color: #ffffffaa;
}

.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.35);
}

/* toggle password icon (ถ้ามี) */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ddd;
}

/* ===============================
   OPTIONS
================================ */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.options a {
    color: #00f0ff;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* ===============================
   BUTTON
================================ */
.button-wrapper {
    text-align: center;
}

.button-link {
    width: 100%;
    display: inline-block;
    background-color: #ff5e5e91;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #45a049a3;
}

/* ===============================
   LINKS
================================ */
a {
    color: #00f0ff;
    text-decoration: none;
}

/* ===============================
   📱 MOBILE (default)
================================ */
/* ใช้ค่าด้านบน */

/* ===============================
   📱 TABLET (>= 768px)
================================ */
@media (min-width: 768px) {
    .login-box {
        padding: 40px;
        max-width: 460px;
    }

    .login-box h2 {
        font-size: 26px;
    }
}

/* ===============================
   💻 DESKTOP (>= 1024px)
================================ */
@media (min-width: 1024px) {
    .login-box {
        max-width: 500px;
    }
}
