/* Khởi tạo cơ bản, chống zoom trên mobile */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* Tắt nháy xanh khi bấm trên webapp mobile */
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.login-container {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.error-msg {
    background-color: #ffeaa7;
    color: #d63031;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #fab1a0;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}

/* Quan trọng: font-size 16px giúp iOS không tự động zoom input */
.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1.5px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px; 
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
}

/* Khung chứa mật khẩu và nút mắt */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px; /* Chừa chỗ cho con mắt */
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    width: 100%;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-login:hover {
    background-color: #2980b9;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}