/* Login — Minimalista FEDEF */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fondo con imagen + fallback solido */
    background-color: #f7f8fa;
    background-image: url("/static/img/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
/* Overlay sutil para asegurar legibilidad del card si la imagen es muy vibrante */
.auth-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 0;
}
.auth-container {
    width: 100%; max-width: 400px; padding: 20px;
    position: relative; z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 14px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 44px 36px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Responsive: en moviles usar imagen como cover pero sin fixed (performance) */
@media (max-width: 768px) {
    .auth-body { background-attachment: scroll; }
    .auth-card { padding: 32px 24px; }
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo-img {
    height: 64px; width: auto;
    max-width: 180px;
}

.auth-title {
    font-size: 20px; font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.auth-subtitle { font-size: 13px; color: #999; }

.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-input { padding: 11px 14px; font-size: 14px; border-radius: 8px; }

/* ---- Input con boton de accion (ej: mostrar contrasena) ---- */
.input-with-action { position: relative; }
.input-with-action .form-input {
    padding-right: 44px;
    width: 100%;
}
.input-action-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.input-action-btn:hover { color: var(--fedef-green); background: rgba(55, 152, 16, 0.08); }
.input-action-btn:focus-visible {
    outline: 2px solid var(--fedef-green);
    outline-offset: 1px;
}
.input-action-btn .hidden { display: none; }

.auth-form .btn-block {
    padding: 12px; font-size: 14px;
    font-weight: 600; margin-top: 8px;
    border-radius: 8px;
}

.auth-form .input-error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(225, 90, 42, 0.08);
}
.auth-form .alert { margin-bottom: 20px; }

.auth-footer {
    text-align: center;
    margin-top: 28px;
}
.auth-support {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12.5px;
    color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.auth-support .icon { color: var(--fedef-green); flex-shrink: 0; }
.auth-support a {
    color: var(--fedef-green);
    text-decoration: none;
    font-weight: 600;
}
.auth-support a:hover { text-decoration: underline; }
.auth-footer-line {
    margin-top: 10px;
    color: rgba(60, 60, 60, 0.55);
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ---- Paginas de error (404, 403, 500, etc.) ---- */
.error-card {
    max-width: 520px;
    text-align: center;
}
.error-code {
    font-size: 56px;
    font-weight: 800;
    color: var(--fedef-green);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -2px;
}
.error-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.error-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 22px;
}
.error-section {
    background: #f7f9fb;
    border: 1px solid #eef2f5;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 22px;
}
.error-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fedef-green);
    margin-bottom: 8px;
}
.error-steps {
    margin: 0;
    padding-left: 22px;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}
.error-steps li { margin-bottom: 2px; }
.error-actions {
    display: flex; gap: 8px; justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.error-report {
    border-top: 1px solid #eee;
    padding-top: 18px;
    text-align: left;
}
.error-report-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}
.error-report-box {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}
.error-report-row {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0;
}
.error-report-label {
    color: #888;
    min-width: 55px;
    font-weight: 500;
}
.error-report-value {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    color: #333;
    flex: 1;
}
.error-report-copy {
    background: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.15s ease;
    font-size: 11px;
}
.error-report-copy:hover {
    background: var(--fedef-green);
    color: #fff;
    border-color: var(--fedef-green);
}
.error-report-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px;
    color: var(--fedef-green);
    text-decoration: none;
    font-weight: 500;
}
.error-report-link:hover { text-decoration: underline; }
