/* ============================================================
   LOGIN — Estilos de la página de inicio de sesión
   ============================================================ */

.login-page {
    background: var(--municipal-bg);
    min-height: calc(100vh - 160px);
    padding: 2.5rem 0;
}

.min-vh-75 { min-height: 75vh; }

.login-container {
    background: white;
    border-radius: var(--municipal-radius-lg);
    box-shadow: var(--municipal-shadow-xl);
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid var(--municipal-border);
}

/* Panel de Informacion */
.info-panel {
    background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 45%, #ccfbf1 100%);
    color: #134e4a;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    pointer-events: none;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: #0f766e;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
}

.info-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.info-description {
    font-size: 0.95rem;
    color: #0f3d38;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.info-features { margin-bottom: 2rem; }

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
    font-size: 0.9rem;
    gap: 0.75rem;
}

.feature-item i {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.7);
    color: #0f766e;
    border-radius: var(--municipal-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.login-page .contact-info {
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    padding-top: 1.5rem;
}

.login-page .contact-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
    color: #3d4f54;
    opacity: 0.85;
}

.login-page .contact-info p {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: #3d4f54;
    opacity: 0.9;
}

/* Panel del Formulario */
.form-panel { padding: 2.75rem 2.5rem; }

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: var(--municipal-radius);
    background-color: var(--municipal-light-gray);
    padding: 3px;
    gap: 3px;
}

.tab-button {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--municipal-gray);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.tab-button.active {
    background-color: white;
    color: var(--municipal-blue);
    box-shadow: var(--municipal-shadow);
    font-weight: 600;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-icon {
    width: 56px;
    height: 56px;
    background: var(--municipal-cyan-light);
    border-radius: var(--municipal-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--municipal-blue);
    margin-bottom: 1rem;
}

.form-header h2,
.form-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--municipal-dark);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.form-header p {
    color: var(--municipal-gray);
    font-size: 0.875rem;
}

/* Formulario */
.login-page .form-group { margin-bottom: 1.25rem; }

.password-wrapper { position: relative; }

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--municipal-gray);
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

.password-toggle:hover { color: var(--municipal-blue); }

.password-toggle:focus-visible {
    outline: 2px solid var(--municipal-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

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

.forgot-password {
    color: var(--municipal-blue-mid);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--municipal-cyan);
    text-decoration: underline;
}

/* Boton de Login */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    border: none;
    border-radius: var(--municipal-radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.btn-login:active { transform: translateY(0); }
.btn-loading { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .info-panel { padding: 2rem; text-align: center; }
    .info-title  { font-size: 1.5rem; }
    .form-panel  { padding: 2rem; }
}

@media (max-width: 768px) {
    .login-page   { padding: 1rem 0; }
    .info-panel   { padding: 1.5rem; }
    .form-panel   { padding: 1.5rem; }
    .form-options { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
