.login-container {
    padding: 5%;
    text-align: center;
    color: #FFFFFF;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 60px); /* Ajusta según el footer */
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 5% 3%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.logo {
    max-width: 50%;
    height: auto;
    margin: 0 auto 5%;
    display: block;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2rem); /* Tamaño adaptable */
    font-weight: 600;
    text-shadow: 2px 2px 5px rgba(0, 45, 98, 0.7);
    margin-bottom: 5%;
}

.error-msg { color: #CE1126; font-size: clamp(0.8rem, 2.5vw, 1rem); }
.success-msg { color: #28a745; font-size: clamp(0.8rem, 2.5vw, 1rem); }

.login-form input, .register-form input, .register-form select {
    display: block;
    width: 100%;
    margin: 3% 0;
    padding: 3% 4%;
    border: 2px solid #002D62;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: border-color 0.3s;
}

.login-form input:focus, .register-form input:focus, .register-form select:focus {
    outline: none;
    border-color: #A51931;
}

.login-form button, .create-account-btn, .register-form button {
    background: linear-gradient(90deg, #A51931, #CE1126);
    color: #FFFFFF;
    padding: 3% 5%;
    border: none;
    border-radius: 10px;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 600;
    cursor: pointer;
    margin: 3% 0;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-form button:hover, .create-account-btn:hover, .register-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(165, 25, 49, 0.6);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 50%, rgba(45, 42, 74, 0.05) 100%);
    padding: 5%;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
}

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

.modal-content h3 {
    color: #A51931;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5%;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    cursor: pointer;
    color: #2D2A4A;
    transition: color 0.3s, transform 0.3s;
}

.close-btn:hover {
    color: #CE1126;
    transform: scale(1.1);
}

.casillas-container { margin-top: 3%; }

.note {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: #CE1126;
    margin: 3% 0;
    font-style: italic;
    background: rgba(45, 42, 74, 0.1);
    padding: 2%;
    border-radius: 6px;
}

/* Media Queries para responsividad */
@media (max-width: 480px) {
    .login-card { padding: 8% 5%; }
    .logo { max-width: 40%; }
    .login-form input, .register-form input, .register-form select { padding: 4% 5%; }
    .login-form button, .create-account-btn, .register-form button { padding: 4% 5%; }
    .modal-content { padding: 8%; }
}