* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a2b4e 0%, #1a4d8c 50%, #2c6eaf 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Efecto de patrón sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.municipio {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a4d8c;
    margin-bottom: 4px;
}

.banda {
    font-size: 22px;
    font-weight: 700;
    color: #0a2b4e;
    letter-spacing: -0.5px;
}

.login-form {
    margin-top: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    color: #1a4d8c;
    font-size: 18px;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #1a4d8c;
    box-shadow: 0 0 0 3px rgba(26, 77, 140, 0.1);
}

.input-group .toggle-password {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s;
}

.input-group .toggle-password:hover {
    color: #1a4d8c;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.remember input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a4d8c;
}

.forgot {
    color: #1a4d8c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot:hover {
    color: #0a2b4e;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a4d8c 0%, #0a2b4e 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: scale(0.98);
    background: linear-gradient(135deg, #0a2b4e 0%, #1a4d8c 100%);
    box-shadow: 0 10px 20px -5px rgba(26, 77, 140, 0.3);
}

.btn-login i {
    font-size: 16px;
}

.register {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.register p {
    color: #64748b;
    font-size: 14px;
}

.register a {
    color: #1a4d8c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register a:hover {
    color: #0a2b4e;
    text-decoration: underline;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.message.error {
    display: block;
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.message.success {
    display: block;
    background-color: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    .banda {
        font-size: 18px;
    }
    
    .options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .input-group input {
        padding: 12px 16px 12px 44px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}