/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Para pantallas grandes: dos columnas lado a lado */
@media (min-width: 992px) {
    .container {
        flex-direction: row;
        min-height: 700px;
    }
}

/* Panel de información (lado izquierdo) */
.info-panel {
    flex: 1;
    background: linear-gradient(160deg, #2196F3 0%, #0d47a1 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
}

.info-panel > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.feature {
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 4px solid #4fc3f7;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Panel de Login (lado derecho) */
.login-panel {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h2 {
    color: #1565c0;
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-box > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Alertas de error */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 5px solid #f44336;
}

/* Grupo de inputs */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* Botón de login */
.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #2196F3, #0d47a1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(to right, #1976D2, #0a3a8a);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Credenciales de demostración */
.demo-credentials {
    margin-top: 40px;
    padding: 20px;
    background-color: #f5f9ff;
    border-radius: 12px;
    border-left: 5px solid #4caf50;
}

.demo-credentials h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-credentials p {
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Enlaces del pie */
.footer-links {
    margin-top: 30px;
    text-align: center;
    color: #666;
}

.footer-links a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.footer-links p {
    margin-top: 15px;
}