/* Quy tắc chung cho tất cả các thiết bị */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

button:hover {
    background-color: #0056b3;
}

.link {
    text-align: center;
    margin-top: 10px;
}

.link a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.link a:hover {
    text-decoration: underline;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.relative {
    position: relative;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

/* Thêm media query duy nhất cho mobile */
@media (max-width: 800px) {
    body {
        padding: 0;
    }
    .container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="file"],
    button {
        font-size: 16px;
        padding: 15px;
    }
    .link a {
        font-size: 16px;
    }
}