/* static/admin/css/login.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #6dd5ed, #2193b0); /* Modern gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    overflow: hidden; /* Prevent scrollbar from gradient */
}

#login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#login-header {
    margin-bottom: 30px; /* Keep this for spacing */
}

/* Removed logo specific styles:
#login-header .logo {
    max-width: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
*/

#login-header h1 {
    font-size: 2.2em;
    color: #2193b0;
    margin: 0;
    font-weight: 600;
}

#login-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#login-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
    border-color: #6dd5ed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 213, 237, 0.3);
}

.form-row {
    margin-bottom: 15px;
}

.submit-row {
    margin-top: 30px;
}

.submit-row input[type="submit"] {
    background-color: #2193b0;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(33, 147, 176, 0.3);
}

.submit-row input[type="submit"]:hover {
    background-color: #1a7b92;
    transform: translateY(-2px);
}

.errornote {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

#forgot-password {
    margin-top: 25px;
    font-size: 0.9em;
}

#forgot-password a {
    color: #2193b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

#forgot-password a:hover {
    color: #1a7b92;
    text-decoration: underline;
}

/* Optional: Styles for messages if they appear on login page (e.g., after password reset) */
ul.messagelist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

ul.messagelist li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 0.95em;
}

ul.messagelist li.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

ul.messagelist li.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

ul.messagelist li.warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}