:root {
    --primary: #1a365d;
    --primary-light: #2b6cb0;
    --secondary: #ecc94b;
    --text-main: #2d3748;
    --bg-login: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7fafc;
    /* El background se pondrá vía inline en el JSP o aquí si es fijo */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: #ffffff;
    background: rgba(255, 255, 255, 0.9);
    background: var(--bg-login);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 1.75rem;
    color: #1a365d;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.login-header p {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    color: var(--text-main);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2b6cb0;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.captcha-container {
    background: #edf2f7;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    color: #1a365d;
    color: var(--primary);
    user-select: none;
    margin-bottom: 10px;
}

.btn-login {
    width: 100%;
    background: #1a365d !important;
    background: var(--primary) !important;
    color: white !important;
    padding: 14px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 10px !important;
}

.btn-login:hover {
    background: #2b6cb0 !important;
    background: var(--primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-msg {
    background: #fff5f5;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid #feb2b2;
}

.footer-login {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

#logo-uto {
    width: 80px;
    margin-bottom: 15px;
}