@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Kanit', sans-serif; }
body { background-color: #f4f7f6; color: #333; display: flex; flex-direction: column; min-height: 100vh; }

/* Form Card (Login, Register, Forgot) */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.auth-card { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); width: 100%; max-width: 500px; }
.auth-card h2 { text-align: center; margin-bottom: 20px; color: #2c3e50; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-control { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; transition: 0.3s; }
.form-control:focus { border-color: #3498db; box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }

.btn { display: inline-block; width: 100%; padding: 12px; background: #3498db; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: 0.3s; text-align: center; text-decoration: none; }
.btn:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; margin-top: 10px; }
.btn-secondary:hover { background: #7f8c8d; }

.auth-links { display: flex; justify-content: space-between; margin-top: 15px; font-size: 14px; }
.auth-links a { color: #3498db; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* Dashboard Layout */
.dashboard-wrapper { display: flex; width: 100%; height: 100vh; overflow: hidden; }
.sidebar { width: 250px; background: #2c3e50; color: #fff; transition: 0.3s; display: flex; flex-direction: column; }
.sidebar.collapsed { width: 0; overflow: hidden; }
.sidebar-header { padding: 20px; text-align: center; background: #1a252f; font-size: 18px; font-weight: 600; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; flex: 1; }
.sidebar-menu li a { display: block; padding: 15px 20px; color: #ecf0f1; text-decoration: none; border-bottom: 1px solid #34495e; transition: 0.3s; }
.sidebar-menu li a:hover { background: #34495e; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; background: #f4f7f6; }
.topbar { background: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.menu-toggle { background: none; border: none; font-size: 24px; cursor: pointer; color: #2c3e50; }
.user-info { font-weight: 500; color: #2c3e50; }
.content-area { padding: 30px; }

.alert { padding: 10px; margin-bottom: 15px; border-radius: 5px; text-align: center; }
.alert-error { background: #fadbd8; color: #c0392b; border: 1px solid #e74c3c; }
.alert-success { background: #d5f5e3; color: #27ae60; border: 1px solid #2ecc71; }

/* ??????? style.css */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 40px; /* ????????????????????????????? */
}
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #777;
    z-index: 10;
}
.toggle-password:hover {
    color: #3498db;
}