/* CSS cho trang đăng nhập */
body {
    font-family: Arial, sans-serif;
    /* Use a relative path because this CSS file is served statically (not parsed as PHP) */
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover; /* Làm cho hình nền phủ đầy màn hình */
    margin: 0;
    padding: 0;
}

/* Container chính cho form đăng nhập */
.login-container {
    /* Ensure this container fills the viewport and is transparent so the body background is visible */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Đảm bảo chiều cao đầy đủ */
    height: 100vh;
    width: 100%;
    text-align: center;
    color: #ffffff; /* Chữ màu trắng */
    background-color: transparent; /* Override any white box from custom.css when this stylesheet loads after */
    padding: 0;
    box-shadow: none;
}

/* Form đăng nhập */
.login-form {
    background-color: rgba(0, 0, 0, 0.6); /* Nền mờ để dễ nhìn chữ */
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

/* Form layout helpers to keep labels/inputs aligned */
.login-form form {
    display: block;
}

.login-form label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-weight: 600;
    color: #fff;
}

.login-form .form-row {
    margin-bottom: 14px;
}

/* Logo */
.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 200px; /* Đảm bảo logo không quá lớn */
    margin: 0 auto;
}

/* Tiêu đề đăng nhập */
.login-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Các trường nhập liệu */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 0; /* spacing handled by .form-row */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #88b7ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(136,183,255,0.12);
}

@media (max-width: 480px) {
    .login-form {
        padding: 18px;
    }

    .login-title {
        font-size: 20px;
    }

    .logo img { max-width: 160px; }
}

/* Nút đăng nhập */
button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

button:hover {
    background-color: #004d99;
}

.hr-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px 0;
}

.hr-with-text hr {
    flex-grow: 1;
    border: 0;
    border-top: 2px solid #ffffff; /* Đường kẻ ngang trắng */
}

.text {
    color: white;
    margin: 0 10px; /* Khoảng cách giữa văn bản và đường kẻ */
}
