/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    position: relative;
    overflow: hidden;
}

/* --- FORMAS DECORATIVAS DE FONDO --- */
.bg-shape-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #3b82f6, #102A43);
    border-radius: 50%;
    opacity: 0.08;
}

.bg-shape-2 {
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #102A43, #3b82f6);
    border-radius: 50%;
    opacity: 0.06;
}

/* --- TARJETA DE LOGIN (EFECTO CRISTAL) --- */
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-height: 60px;
    width: auto;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #102A43;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #627D98;
    margin-bottom: 30px;
}

/* --- FORMULARIO --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334E68;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #BCCCDC;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: #102A43;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #486581;
    cursor: pointer;
}

.forgot-password {
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* --- BOTÓN DE LOGIN --- */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #102A43;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-login:hover {
    background-color: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --- DIVISOR "o" --- */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #D9E2EC;
}

.divider span {
    font-size: 0.85rem;
    color: #829AB1;
}

/* --- ENLACE DE REGISTRO --- */
.register-link {
    text-align: center;
    font-size: 0.95rem;
    color: #486581;
}

.register-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* --- MENSAJE DE ERROR --- */
.error-message {
    background-color: #FEE2E2;
    color: #991B1B;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .login-card {
        margin: 20px;
        padding: 30px 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}