@keyframes enl-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eql-oculto { display: none !important; }

.enl-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    font-family: var(--font-body);
}

.enl-brand {
    width: 42%;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
    color: var(--surface);
}

.enl-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--surface) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.06;
    pointer-events: none;
}

.enl-brand-visual {
    width: 78%;
    max-width: 200px;
    align-self: center;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 3 / 4;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--text-on-surface) 22%, transparent);
}

.enl-brand-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enl-brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--surface);
    line-height: 1;
}

.enl-brand-sub {
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--surface);
    opacity: 0.6;
}

.enl-brand-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--surface);
    opacity: 0.8;
    max-width: 300px;
}

.enl-form-panel {
    flex: 1;
    background: var(--surface-low);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 48px;
    overflow-y: auto;
}

.enl-form-inner {
    width: 100%;
    max-width: 360px;
    margin: auto;
    animation: enl-slide-in 0.22s ease-out both;
}

.enl-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-surface);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.2;
}

.enl-form-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 28px;
}

.enl-form-desc strong {
    color: var(--text-on-surface);
    font-weight: 600;
}

.enl-field {
    margin-bottom: 16px;
}

.enl-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.enl-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.enl-label-row .enl-label {
    margin-bottom: 0;
}

.enl-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-on-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.enl-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}

select.enl-input {
    cursor: pointer;
}

.enl-error {
    display: block;
    font-size: 0.75rem;
    color: var(--error-text);
    margin-top: 4px;
    min-height: 1em;
}

.enl-input-wrap {
    position: relative;
}

.enl-input-wrap .enl-input {
    padding-right: 44px;
}

.enl-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-faint);
    font-size: 0.875rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.enl-pwd-toggle:hover {
    color: var(--text-muted);
}

.enl-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.enl-check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.enl-check-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.enl-link {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.enl-link:hover {
    text-decoration: underline;
}

button.enl-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

button.enl-link:disabled {
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
}

.enl-codigo {
    height: 52px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

.enl-codigo::placeholder {
    color: var(--text-faint);
    letter-spacing: 0.5em;
}

.enl-rec-politica {
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.enl-rec-omitir {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.enl-rec-omitir-texto {
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.enl-rec-omitir .enl-btn-secondary {
    width: 100%;
    justify-content: center;
}

.enl-rec-reenviar {
    margin: 18px 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.enl-btn-primary {
    display: block;
    width: 100%;
    height: 44px;
    background: var(--color-primary);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    overflow: hidden;
}

a.enl-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.enl-btn-primary:hover:not([aria-busy="true"]) {
    background: var(--color-primary-hover);
}

.enl-btn-primary:focus {
    outline: 3px solid var(--color-primary-bg);
    outline-offset: 2px;
}

.enl-btn-primary[aria-busy="true"] {
    color: transparent;
    pointer-events: none;
    cursor: default;
}

.enl-btn-primary[aria-busy="true"]::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    border-radius: 50%;
    border: 2.5px solid var(--surface);
    border-top-color: transparent;
    animation: enl-spin 0.6s linear infinite;
}

@keyframes enl-spin {
    to { transform: rotate(360deg); }
}

.enl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.enl-btn-secondary:hover {
    background: var(--surface-container);
    color: var(--text-on-surface);
    border-color: var(--outline-var);
}

.enl-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.enl-pwd-result {
    margin-bottom: 24px;
}

.enl-pwd-result-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.enl-pwd-result--ok .enl-pwd-result-icon {
    color: var(--success-text);
}

.enl-pwd-result--error .enl-pwd-result-icon {
    color: var(--error-text);
}

.enl-footer-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.enl-footer-note a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.enl-footer-note a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .enl-page {
        height: auto;
        overflow: visible;
        flex-direction: column;
    }

    .enl-brand {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 20px 24px;
    }

    .enl-brand-visual {
        display: none;
    }

    .enl-brand-tagline {
        display: none;
    }

    .enl-brand-top {
        gap: 3px;
    }

    .enl-brand-logo {
        font-size: 1.375rem;
    }

    .enl-brand-sub {
        opacity: 0.65;
        font-size: 0.65rem;
    }

    .enl-form-panel {
        align-items: flex-start;
        padding: 32px 24px 48px;
    }

    .enl-form-inner {
        max-width: 100%;
    }

    .enl-btn-row {
        grid-template-columns: 1fr;
    }

    .enl-btn-row .enl-btn-primary {
        order: -1;
    }
}

.enl-sol-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.enl-sol-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 44px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.enl-sol-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.enl-sol-icon--neutral  { color: var(--color-primary); }
.enl-sol-icon--pending  { color: var(--warning-text); }
.enl-sol-icon--rejected { color: var(--error-text); }
.enl-sol-icon--approved { color: var(--success-text); }

.enl-sol-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-surface);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.enl-sol-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

.enl-sol-desc strong {
    color: var(--text-on-surface);
    font-weight: 600;
}

.enl-sol-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.enl-sol-link:hover {
    text-decoration: underline;
}

.enl-sol-field {
    text-align: left;
    margin-bottom: 20px;
}

.enl-sol-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.enl-sol-textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-on-surface);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.enl-sol-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}

.enl-sol-err {
    display: block;
    font-size: 0.75rem;
    color: var(--error-text);
    margin-top: 4px;
    min-height: 1em;
}

.enl-sol-nota {
    background: var(--surface-low);
    border-left: 3px solid var(--error);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-on-surface);
    line-height: 1.55;
}

.enl-sol-nota-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enl-gsol-body { padding-top: 0; }

.enl-gsol-filtros {
    display: flex;
    align-items: center;
    padding: 12px 0 16px;
    border-bottom: none;
}

.enl-gsol-filtros-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.enl-gsol-tabla-container {
    margin-top: 4px;
}

.enl-gsol-motivo {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enl-gsol-acciones {
    white-space: nowrap;
}

.enl-gsol-acciones .eq-btn {
    margin-right: 6px;
}

.enl-gsol-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.enl-gsol-badge--pendiente { background: var(--warning-bg);  color: var(--warning-text); }
.enl-gsol-badge--aprobado  { background: var(--success-bg);  color: var(--success-text); }
.enl-gsol-badge--rechazado { background: var(--error-bg);    color: var(--error-text); }

.enl-gsol-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.enl-gsol-empty-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.enl-gsol-empty p {
    font-size: 0.9375rem;
    margin: 0;
}
