/* General Reset */
* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/bg_regis.JPG'); /* Đảm bảo đường dẫn đúng */
    background-size: contain; /* Đảm bảo ảnh phủ toàn bộ màn hình */
    background-position: center; /* Căn giữa ảnh */
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Styling */
.container {
    background: rgba(75, 0, 130, 0.9); /* Deep Purple */
    width: 360px;
    padding: 32px;
    border-radius: 20px;
    border: solid 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px); /* Tạo hiệu ứng mờ phía sau */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center; /* Căn giữa các phần tử bên trong */
    margin-top: 20px;
}

.login-title {
    margin-bottom: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #fff;
}



/* Input Box */
.input-box {
    display: flex;
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.input-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    caret-color: white;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: border 0.3s ease, background 0.3s ease;
}

.input-box input:focus {
    border: 1px solid #f39c12;
    background: rgba(255, 255, 255, 0.2);
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-box i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-box input:focus + i {
    color: #f39c12;
}

/* Remember Forgot Box */
.remember-forgot-box {
    display: flex;
    width: 100%;
    margin-top: 16px;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    gap: 8px;
    align-items: center;
}

.remember-me input {
    accent-color: #f39c12;
}

.remember-me h5 {
    font-size: 16px;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #f39c12;
}

/* Button */
.login-button {
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #f39c12, #e67e22); /* Màu vàng nhẹ và cam */
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(45deg, #e67e22, #f39c12); /* Đảo ngược gradient khi hover */
    transform: translateY(-2px);
}

/* Register Link */
.dont-have-an-account {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8); /* Màu chữ nhạt nhẹ */
}

.dont-have-an-account a {
    color: #f39c12; /* Màu vàng nhẹ */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.dont-have-an-account a:hover {
    color: #e67e22; /* Màu cam khi hover */
}


/* Error Message */
.error {
    color: #e74c3c;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    body {
        background-size: cover;
    }
    .container {
        margin: 20px;
    }
    .login-title {
        font-size: 40px; /* Giảm kích thước chữ tiêu đề */
    }

    .input-box input {
        font-size: 16px; /* Giảm kích thước chữ */
    }

    .login-button {
        font-size: 20px; /* Giảm kích thước chữ */
        margin-top: 20px;
    }

    .dont-have-an-account {
        font-size: 16px; /* Giảm kích thước chữ */
        margin-top: 20px;
    }

    .error {
        margin-top: 20px;

        font-size: 16px; /* Giảm kích thước chữ */
    }
    .remember-forgot-box {
        margin-top: 20px;
    }
}
