/**
 * Error Pages (404, 500, etc.)
 * Scoped to .error-page wrapper.
 */

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

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

/* ========================================
   LAYOUT
   ======================================== */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8) var(--space-4);
    background-color: var(--color-bg-page);
    font-family: var(--font-sans);
    text-align: center;
}

.error-page__brand {
    margin-bottom: var(--space-10);
    animation: error-fade-in var(--duration-slow) var(--ease-out) both;
}

.error-page__brand-logo {
    height: 48px;
    width: auto;
}

/* ========================================
   CARD
   ======================================== */

.error-page__card {
    width: 100%;
    max-width: 500px;
    padding: var(--space-12) var(--space-10);
    animation: error-fade-in var(--duration-slow) var(--ease-out) 100ms both;

    /* More pronounced card */
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-default);

    /* Brand accent on top edge */
    border-top: 3px solid var(--color-brand);
}

/* ========================================
   CONTENT
   ======================================== */

.error-page__icon {
    font-size: 3rem;
    color: var(--color-gray-300);
    margin-bottom: var(--space-6);
    display: inline-block;
    animation: error-float 3.5s var(--ease-in-out) infinite;
}

.error-page__code {
    font-size: 6rem;
    font-weight: var(--font-bold);
    line-height: 1;
    color: var(--color-brand);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

.error-page__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.error-page__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);  /* one step up from muted */
    font-style: italic;
    margin-bottom: var(--space-8);       /* more separation before the divider */
}

.error-page__divider {
    width: 40px;
    height: 2px;
    background-color: var(--color-border-default);
    margin: 0 auto var(--space-6);
}

.error-page__message {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.error-page__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}