/* ============================================
   Error Pages - Light Green Business Style
   ============================================ */

/* ---------- Keyframes ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .85; transform: scale(1.04); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px) rotate(-1deg); }
    30% { transform: translateX(5px) rotate(1deg); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

/* ---------- Page ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 40%, #ffffff 100%);
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    padding: 1.5rem;
}

/* ---------- Card ---------- */
.error-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(46, 125, 50, .1), 0 2px 12px rgba(0, 0, 0, .04);
    padding: 3.5rem 3rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    animation: fadeInUp .7s ease-out both;
}

/* ---------- SVG icon ---------- */
.error-icon {
    margin-bottom: 1.25rem;
    animation: float 4s ease-in-out infinite;
}

.error-icon svg {
    width: 120px;
    height: 120px;
}

/* ---------- Error code ---------- */
.error-code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    margin: .25rem 0 .5rem;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.error-code--pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.error-code--shake {
    animation: shake .6s ease-in-out 1, pulse 2.5s ease-in-out .6s infinite;
}

/* ---------- Text ---------- */
.error-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #2d3e2e;
    margin-bottom: .5rem;
}

.error-desc {
    font-size: 1rem;
    color: #5a6f5c;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ---------- Button ---------- */
.error-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(46, 125, 50, .25);
}

.error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, .35);
    color: #fff;
}

.error-btn:active {
    transform: translateY(0);
}

/* ---------- Decorative dots ---------- */
.error-page::before,
.error-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: .12;
    pointer-events: none;
}

.error-page::before {
    width: 300px;
    height: 300px;
    background: #a5d6a7;
    top: -80px;
    right: -60px;
    animation: float 6s ease-in-out infinite;
}

.error-page::after {
    width: 200px;
    height: 200px;
    background: #81c784;
    bottom: -50px;
    left: -40px;
    animation: float 5s ease-in-out 1s infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .error-card {
        padding: 2.5rem 1.5rem;
        border-radius: 14px;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-icon svg {
        width: 90px;
        height: 90px;
    }

    .error-title {
        font-size: 1.3rem;
    }
}
