/* /opt/residentia_software/static/admin/css/custom_login.css */

/* --- Estructura General de la Página --- */
body.login {
    background-color: #F2F0EB;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#header, #footer { flex-shrink: 0; }
#content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- Header (Barra Superior) --- */
#header {
    background: #3DCF96;
    color: #fff;
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#header a { color: #fff; text-decoration: none; }
#header #branding { float: left; }
#header #branding h1 { margin: 0; padding: 0; font-size: 20px; font-weight: 300; }
#header #branding img { max-height: 80px; vertical-align: middle; margin-right: 10px; }
#header #user-tools { float: right; padding: 0; margin: 0 0 0 20px; font-weight: 300; font-size: 14px; }
#header #user-tools a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding: 5px 10px; }
#header #user-tools a:hover { background-color: rgba(255,255,255,0.1); }

/* --- Formulario de Login --- */
#content-main {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}
#login-form h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px;
    text-align: center;
}
#login-form .form-row { margin-bottom: 20px; }
#login-form label { font-weight: 600; color: #555; display: block; margin-bottom: 8px; font-size: 14px; }

/* --- REGLA UNIFICADA Y CORREGIDA PARA TODOS LOS INPUTS --- */
#login-form input[type="text"],
#login-form input[type="password"],
#login-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus,
#login-form input[type="email"]:focus {
    border-color: #3DCF96;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #3DCF96;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
#login-form input[type="submit"]:hover { background: #3DCF96; }

.password-reset-link { text-align: center; margin-top: 20px; }
.password-reset-link a { color: #3DCF96; text-decoration: none; font-size: 14px; }
.password-reset-link a:hover { text-decoration: underline; }

/* --- Footer --- */
#footer {
    text-align: center;
    color: #888;
    padding: 20px;
    font-size: 14px;
}

/* --- Estilos para Mensajes de Error --- */
.errornote {
    background-color: #fbeae5;
    border: 1px solid #e03c00;
    color: #e03c00;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}
.errornote p {
    margin: 0;
}
