﻿/* ========================================= */
/* THIẾT LẬP NỀN (Bạn đổi ảnh ở đây nhé!)    */
/* ========================================= */
body {
    background: url('../images/anhhoidep.png') no-repeat center center fixed;
    background-size: cover;
    animation: moveBg 10s ease-in-out infinite alternate;
}

::-webkit-scrollbar {
    display: none;
}

#wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================= */
/* BOX ĐĂNG NHẬP / ĐĂNG KÝ                   */
/* ========================================= */
#form-login {
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8);
    flex-grow: 1;
    padding: 30px 30px 40px;
    box-shadow: 0px 0px 17px 2px rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.form-heading {
    font-size: 25px;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    border-bottom: 1px solid #fbf8f8;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.form-input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    flex: 1;
    padding-right: 35px;
}

/* ========================================= */
/* NÚT BẤM VÀ CÁC THÀNH PHẦN KHÁC            */
/* ========================================= */
.form-submit {
    background: transparent;
    border: 1px solid #f5f5f5;
    color: #fff;
    width: 100%;
    text-transform: uppercase;
    padding: 10px;
    font-weight: bold;
    transition: 0.25s ease-in-out;
    margin-top: 30px;
    cursor: pointer;
}

    .form-submit:hover {
        border: 1px solid #54a0ff;
        color: #54a0ff;
    }

/* Nút Quay lại Trang chủ */
.btn-home {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

    .btn-home:hover {
        background: #54a0ff;
        border-color: #54a0ff;
        color: #fff;
        box-shadow: 0 0 10px rgba(84, 160, 255, 0.5);
    }

/* Khu vực link Đăng ký / Đăng nhập ở dưới cùng */
.bottom-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

    .bottom-links a {
        color: #dcdde1;
        text-decoration: none;
        transition: 0.3s;
    }

        .bottom-links a:hover {
            color: #54a0ff;
            text-decoration: underline;
        }

/* ========================================= */
/* ICONS VÀ HIỆU ỨNG                         */
/* ========================================= */

/* Đổi màu toàn bộ Icon thành màu trắng */
.form-group i.fa-user,
.form-group i.fa-lock,
.form-group i.fa-envelope,
.form-group i.fa-check-circle {
    color: #fff;
    font-size: 14px;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* Icon con mắt ẩn hiện mật khẩu */
.eye-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    cursor: pointer;
}

    .eye-toggle:hover {
        color: #54a0ff;
    }

/* Thông báo lỗi đỏ */
.error-box {
    background: rgba(246, 241, 241, 0.2);
    border: 1px solid #ff4d4d;
    color: #fac4c4;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Hiệu ứng hình nền phóng to nhẹ */
@keyframes moveBg {
    0% {
        background-position: center top;
        transform: scale(1);
    }

    80% {
        background-position: center bottom;
        transform: scale(1.1);
    }
}
