/* login.css */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/static/image/index/bg.webp');
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px 45px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

h2 {
    font-size: 1.8em;
    margin: 0 0 30px 0;
    color: #333;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
    outline: none;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 5px 0 25px 0;
    width: 100%;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    background-color: white;
}

input[type="checkbox"]:checked {
    background-color: #007BFF;
    border-color: #007BFF;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me span {
    font-size: 1em;
    color: #666;
    transition: color 0.3s;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    border: none;
    border-radius: 25px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-weight: 500;
    margin-top: 5px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

.error-message {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: rgba(248, 215, 218, 0.8);
    color: #dc3545;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    text-align: center;
}