/* ==========================================
   错误和验证页面通用样式
   ========================================== */

.page-wrapper {
    min-height: calc(100vh - 64px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* 页面包装器中的 container 不需要额外样式 */
.page-wrapper .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* 阅后即焚提醒页面特殊宽度 */
.page-card.burn-warning {
    max-width: 750px;
}

.page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.page-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.page-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.page-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.page-form {
    text-align: left;
    margin-bottom: 25px;
}

.page-form .form-section {
    margin-bottom: 20px;
}

.page-form .input-group {
    position: relative;
}

.page-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.page-form .input-icon svg {
    width: 20px;
    height: 20px;
}

.page-form input[type="password"],
.page-form input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fafafa;
}

.page-form input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.page-btn {
    width: 100%;
    padding: 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn:hover {
    background: #5558e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.page-btn svg {
    width: 18px;
    height: 18px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    margin-top: 20px;
}

.page-link:hover {
    color: #5558e3;
}

.page-link svg {
    width: 16px;
    height: 16px;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-card {
        padding: 40px 30px;
    }

    /* 阅后即焚页面在移动端也要保持更宽 */
    .page-card.burn-warning {
        max-width: 750px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-icon {
        width: 70px;
        height: 70px;
    }

    .page-icon svg {
        width: 35px;
        height: 35px;
    }

    .error-code {
        font-size: 4rem;
    }
}
