* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #0f2a44, #1e5fa3);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
}

.logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    color: #0f2a44;
    font-size: 24px;
}

.subtitle {
    color: #6c7a89;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    color: #0f2a44;
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccd6e0;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #1e5fa3;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #1e5fa3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #174b82;
}

.extra-options {
    margin-top: 25px;
}

.extra-options a {
    font-size: 13px;
    color: #1e5fa3;
    text-decoration: none;
}

.extra-options a:hover {
    text-decoration: underline;
}

.error-message {
    color: #c0392b;
    font-size: 13px;
    margin-top: 15px;
    display: none;
}
.mensaje-ok{
    display:none;
    margin-top:15px;
    padding:12px;
    background:#e8f8ee;
    border:1px solid #2ecc71;
    color:#1e7e4d;
    border-radius:6px;
    font-size:14px;
    text-align:center;
    animation:fadeIn 0.4s ease;
}

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

.btn-secundario {
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: #ffffff;
    color: #0b4f8a;
    border: 1px solid #0b4f8a;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: glowTenue 1.8s infinite ease-in-out;
}

.btn-secundario:hover {
    background: #f2f7fc;
    animation-play-state: paused;
}

@keyframes glowTenue {
    0% {
        box-shadow: 0 0 0 rgba(11, 79, 138, 0),
                    0 0 0 rgba(11, 79, 138, 0);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 10px rgba(11, 79, 138, 0.35),
                    0 0 22px rgba(11, 79, 138, 0.18);
        filter: brightness(1.06);
    }
    100% {
        box-shadow: 0 0 0 rgba(11, 79, 138, 0),
                    0 0 0 rgba(11, 79, 138, 0);
        filter: brightness(1);
    }
}