* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { 
    /* Dùng !important để chém bay cái màu hồng cũ đang bị kẹt trong bộ nhớ */
    background: #f4f7f6 !important; 
    
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
}

h2 { text-align: center; color: #ff6b00; margin-bottom: 25px; font-weight: 800; }

input, select {
    width: 100%; padding: 14px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 10px; font-size: 15px; transition: 0.3s;
}
input:focus, select:focus { border-color: #ff6b00; outline: none; box-shadow: 0 0 8px rgba(255,107,0,0.2); }

.options { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 20px; color: #555; }
.options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.forgot-pwd { color: #ff6b00; text-decoration: none; font-weight: bold; }
.forgot-pwd { color: #ff6b00; text-decoration: none; font-weight: bold; }

.btn-primary {
    width: 100%; padding: 15px; background: #ff6b00; color: white;
    border: none; border-radius: 10px; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { background: #e65c00; }

.divider { text-align: center; margin: 20px 0; position: relative; }
.divider span { background: #fff; padding: 0 10px; color: #999; font-size: 14px; position: relative; z-index: 1; }
.divider::after {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #eee; z-index: 0;
}

.btn-google {
    width: 100%; padding: 12px; background: white; color: #333;
    border: 1px solid #ccc; border-radius: 10px; font-size: 15px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
}
.btn-google img { width: 20px; }

.switch-form { text-align: center; margin-top: 25px; font-size: 14px; color: #666; }
.switch-form span { color: #ff6b00; font-weight: bold; cursor: pointer; text-decoration: underline; }

.hidden { display: none !important; }

/*Phần mới /
Con mắt đăng ký 

/* --- GIAO DIỆN CON MẮT BẬT/TẮT MẬT KHẨU --- */
/* --- GIAO DIỆN CON MẮT BẬT/TẮT MẬT KHẨU --- */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px; 
}

.password-wrapper input {
    margin-bottom: 0 !important; 
    padding-right: 45px !important; /* Đẩy chữ không đâm vào con mắt */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.2s;
    user-select: none;
    z-index: 2;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Ẩn triệt để con mắt mặc định vô duyên của Edge/Chrome */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2); /* Đưa chuột vào con mắt to lên xíu */
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

/* Nền Gradient mượt mà, sang chảnh lấy cảm hứng từ ảnh 1 nhưng phối tone Cam Đậm - Tím cực hiện đại */
body { 
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); /* Tone gradient cực trend */
    display: flex; justify-content: center; align-items: center; 
    min-height: 100vh; padding: 20px; 
}

.auth-container {
    background: #ffffff; width: 100%; max-width: 450px;
    padding: 40px 30px; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); 
    overflow: hidden; /* Cắt góc gọn gàng */
}

h2 { text-align: center; color: #ff6b00; margin-bottom: 25px; font-weight: 800; font-size: 28px; }

input, select {
    width: 100%; padding: 14px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 10px; font-size: 15px; transition: 0.3s;
    background-color: #f9f9f9;
}
input:focus, select:focus { border-color: #ff6b00; outline: none; box-shadow: 0 0 8px rgba(255,107,0,0.3); background-color: #fff; }

/* --- FIX CHECKBOX GỌN GÀNG --- */
.options { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 20px; color: #555; }
.remember-label { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.remember-label input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #ff6b00; }
.forgot-pwd { color: #ff6b00; text-decoration: none; font-weight: bold; cursor: pointer; transition: 0.2s; }
.forgot-pwd:hover { color: #d65a00; text-decoration: underline; }

/* --- NÚT BẤM --- */
.btn-primary {
    width: 100%; padding: 15px; background: linear-gradient(to right, #ff6b00, #ff9b00); color: white;
    border: none; border-radius: 10px; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.4); }

.divider { text-align: center; margin: 20px 0; position: relative; }
.divider span { background: #fff; padding: 0 10px; color: #999; font-size: 14px; position: relative; z-index: 1; }
.divider::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #eee; z-index: 0; }

.btn-google {
    width: 100%; padding: 12px; background: white; color: #333;
    border: 1px solid #ccc; border-radius: 10px; font-size: 15px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: 0.3s;
}
.btn-google:hover { background: #f1f1f1; }
.btn-google img { width: 22px; }

.switch-form { text-align: center; margin-top: 25px; font-size: 14px; color: #666; }
.switch-form span { color: #ff6b00; font-weight: bold; cursor: pointer; text-decoration: underline; }

/* --- TRẠNG THÁI KIỂM DUYỆT (REAL-TIME) --- */
.password-rules { font-size: 13px; text-align: left; margin-bottom: 15px; padding: 10px; background: #fdfdfd; border-radius: 8px; border: 1px dashed #ddd; }
.password-rules p { margin: 5px 0; transition: 0.3s; }
.valid { color: #00b894; font-weight: bold; } /* Tích xanh */
.invalid { color: #d63031; font-weight: bold; } /* X đỏ */
.waiting { color: #b2bec3; } /* Chấm xám chờ */

.password-match { font-size: 13px; margin: -5px 0 15px 5px; font-weight: bold; }

.hidden { display: none !important; }





/* --- KHUNG THÔNG BÁO LỖI ĐẸP MẮT --- */
.error-msg {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    border: 1px solid #ffcccc;
    animation: shake 0.3s ease-in-out; /* Gọi hiệu ứng rung */
}

/* Tạo hiệu ứng rung lắc khi báo lỗi */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}