        @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #1a202c;
    font-family: 'Press Start 2P', cursive;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Cố định chiều cao bằng đúng màn hình */
    margin: 0;
    overflow: hidden; /* Chặn scroll toàn trang */
}

        .bg-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, #2d3748 0%, #1a202c 100%);
            z-index: -1;
        }

.login-card {
    background: rgba(45, 55, 72, 0.95);
    border: 4px solid #ed8936;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    padding: 1.5rem; /* Giảm padding từ 2.5rem xuống 1.5rem */
    width: 90%; /* Để xinh hơn trên mobile */
    max-width: 400px; /* Giảm chiều rộng tối đa một chút */
    max-height: 95vh; /* Đảm bảo không bao giờ vượt quá chiều cao màn hình */
    overflow-y: auto; /* Nếu màn hình quá nhỏ (như đt nằm ngang), thẻ sẽ tự hiện scrollbar nội bộ */
    text-align: center;
    border-radius: 20px;
    position: relative;
}
/* Thu nhỏ các ô input và nút bấm để tiết kiệm không gian */
.input-field {
    background: #1a202c;
    border: 2px solid #4a5568;
    color: white;
    font-family: 'Arial', sans-serif;
    padding: 10px; /* Giảm từ 12px */
    width: 100%;
    margin-bottom: 0.4rem;
    border-radius: 8px;
    font-size: 14px;
}

        /* ẨN NÚT MẶT ĐỊNH CỦA TRÌNH DUYỆT (CHROME/EDGE) */
        input::-ms-reveal,
        input::-ms-clear {
            display: none;
        }
        input::-webkit-contacts-auto-fill-button, 
        input::-webkit-credentials-auto-fill-button {
            visibility: hidden;
            display: none !important;
            pointer-events: none;
            position: absolute;
            right: 0;
        }

        .input-field:focus {
            border-color: #ed8936;
            box-shadow: 0 0 10px rgba(237, 137, 54, 0.3);
        }

        /* Password Wrapper và Nút Ẩn/Hiện */
        .password-container {
            position: relative;
            width: 100%;
        }
        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-80%); /* Căn giữa theo chiều dọc của ô input */
            cursor: pointer;
            color: #a0aec0;
            font-size: 16px;
            z-index: 20;
            user-select: none;
        }
.btn-primary {
    background: #ed8936;
    color: white;
    padding: 12px; /* Giảm từ 15px */
    width: 100%;
    font-size: 0.65rem; /* Thu nhỏ font chữ pixel */
    border-radius: 8px;
    margin-top: 0.8rem;
}

        .btn-primary:hover {
            background: #f6ad55;
            transform: translateY(-2px);
        }

        .btn-secondary {
            color: #ed8936;
            background: transparent;
            font-size: 0.6rem;
            margin-top: 1.5rem;
            cursor: pointer;
            text-decoration: underline;
            display: inline-block;
        }

        .strength-meter {
            height: 6px;
            width: 100%;
            background-color: #2d3748;
            border-radius: 3px;
            margin-top: 5px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .strength-bar {
            height: 100%;
            width: 0%;
            transition: width 0.3s ease, background-color 0.3s ease;
        }

        .strength-label {
            font-family: 'Arial', sans-serif;
            font-size: 11px;
            text-align: left;
            margin-top: 2px;
            font-weight: bold;
        }
/* Thu nhỏ ghi chú yêu cầu mật khẩu */
.info-note {
    font-family: 'Arial', sans-serif;
    font-size: 12px; /* Tăng lại một chút để dễ đọc */
    color: #ffd700; /* Màu vàng giống text game */
    background: #2d3748;
    padding: 12px;
    border: 2px solid #4a5568; /* Tạo viền hộp thoại */
    border-radius: 4px; /* Bo góc nhẹ kiểu retro */
    text-align: left;
    margin-top: 12px;
    line-height: 1.5;
    position: relative;
    box-shadow: inset 2px 2px 0px rgba(255,255,255,0.1);
}

.info-note strong {
    color: #ed8936;
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Hiệu ứng chấm tròn nhỏ ở góc giống hộp thoại Pokemon */
.info-note::after {
    content: "▼";
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 10px;
    color: #ed8936;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 8px;
            display: none;
            z-index: 100;
            animation: slideIn 0.5s ease-out;
            font-family: 'Arial', sans-serif;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .success { background: #48bb78; color: white; }
        .error { background: #f56565; color: white; }

        .form-container { display: none; }
        .form-active { display: block; animation: fadeIn 0.4s ease; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }