/* Synn error pages — matches landing dark / glass theme */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(180deg, #000032 0%, #000055 45%, #000044 100%);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(67, 67, 253, 0.35), transparent),
        radial-gradient(ellipse 40% 30% at 90% 80%, rgba(67, 67, 253, 0.12), transparent);
    pointer-events: none;
}

.error-page__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.error-page__logo {
    display: block;
    margin: 0 auto 2rem;
    height: 48px;
    width: auto;
    opacity: 0.95;
}

.error-page__card {
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    background: rgba(15, 15, 55, 0.72);
    border: 1px solid rgba(67, 67, 253, 0.3);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.error-page__code {
    font-size: clamp(4rem, 18vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a8a8ff 50%, #4343fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
}

.error-page__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(67, 67, 253, 0.2);
    border: 1px solid rgba(67, 67, 253, 0.4);
    color: #7b7bff;
    font-size: 1.5rem;
}

.error-page__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.error-page__message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 1.75rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.error-page__btn--primary {
    background: linear-gradient(135deg, #4343fd, #5c5cff);
    color: #fff;
    box-shadow: 0 4px 20px rgba(67, 67, 253, 0.4);
}

.error-page__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(67, 67, 253, 0.5);
    color: #fff;
}

.error-page__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.error-page__btn--ghost:hover {
    background: rgba(67, 67, 253, 0.15);
    border-color: rgba(67, 67, 253, 0.35);
    color: #fff;
}

.error-page__redirect {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.error-page__redirect a {
    color: #7b7bff;
    text-decoration: none;
}

.error-page__redirect a:hover {
    text-decoration: underline;
}

.error-page__redirect strong {
    color: #4343fd;
    font-weight: 700;
}

.error-page__countdown {
    display: inline-block;
    min-width: 1.25rem;
}

.error-page__pulse {
    animation: error-pulse 2.5s ease-in-out infinite;
}

@keyframes error-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
}

@media (max-width: 480px) {
    .error-page__card {
        padding: 2rem 1.25rem 1.5rem;
    }

    .error-page__actions {
        flex-direction: column;
    }

    .error-page__btn {
        width: 100%;
    }
}
