/* =================================================================
   SIGEIM - Login Page Styles — Alcaldía Libertador
   Archivo: login.css
   ================================================================= */

* {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #e8eef6 0%, #d1dce8 50%, #eef2f8 100%);
    min-height: 100vh;
}

.login-card {
    background: white;
    border: 1px solid #c8d6e5;
    box-shadow: 0 20px 60px rgba(27, 58, 92, 0.15), 0 8px 24px rgba(27, 58, 92, 0.08);
}

.input-field {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    color: #1e293b;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    background: white;
    border-color: #1B3A5C;
    box-shadow: 0 0 0 4px rgba(27, 58, 92, 0.15);
}

.input-field.valid {
    border-color: #16a34a;
    background: #f0fdf4;
}

.input-field.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.btn-login {
    background: linear-gradient(135deg, #1B3A5C 0%, #2E6BA6 100%);
    transition: all 0.3s ease;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 58, 92, 0.35);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
}

.logo-container {
    background: linear-gradient(135deg, #1B3A5C 0%, #2E6BA6 100%);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(27, 58, 92, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(27, 58, 92, 0.5);
    }
}

.validation-msg {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cheat-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.1);
    font-family: monospace;
}

.role-badge {
    transition: all 0.2s ease;
}

.role-badge:hover {
    transform: scale(1.05);
}

.swal2-timer-progress-bar {
    height: 6px !important;
    background: linear-gradient(90deg, #1B3A5C, #2E6BA6) !important;
}

/* =================================================================
   RESPONSIVE — Mobile
   ================================================================= */
@media (max-width: 768px) {
    .login-card,
    .max-w-md {
        margin: 12px !important;
        padding: 1.25rem !important;
        max-width: calc(100vw - 24px) !important;
    }

    .text-3xl {
        font-size: 1.5rem !important;
    }
}