/* css/login.css */

body.login-page {
    height: 100vh;
    overflow: hidden; 
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Lado Izquierdo (Branding) */
.split-left {
    flex: 1;
    position: relative;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-light);
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(32, 68, 224, 0.95) 0%, rgba(20, 45, 150, 0.98) 100%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2)); 
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--bg-light);
    margin: 0;
    line-height: 1;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--bg-light);
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: var(--bg-light);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.6;
    text-align: left;
}

/* Lado Derecho (Formulario) */
.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: left;
    border-bottom: 3px solid var(--accent-yellow); 
    display: inline-block;
    padding-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-brown);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 68, 224, 0.15); 
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-light);
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background-color: var(--accent-yellow);
    color: var(--text-main); 
}

@media (max-width: 768px) {
    .split-container { flex-direction: column; }
    .split-left { flex: 0.3; min-height: 250px; }
    .split-right { flex: 0.7; align-items: flex-start; padding-top: 2rem; }
    .legal-footer { position: relative; bottom: 0; left: 0; text-align: center; margin-top: 2rem; }
}