/* === 登录注册页专用样式 === */

/* 覆盖全局 body 可能带来的布局干扰 */
body.auth-body {
    display: block !important;
    height: auto !important;
    overflow-y: auto !important;
    background-color: #f9fafb; /* 极浅灰背景 */
}

/* 核心容器：全屏居中 */
.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px; /* 点阵背景纹理 */
}

/* 卡片样式 */
.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); /* 高级柔和阴影 */
    border: 1px solid rgba(0,0,0,0.03);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 头部区域 */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 48px;
    display: inline-block;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 14px;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px; /* 移动端防缩放 */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #111;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    background: #fff;
    border-color: #4d6bfe;
    box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* 按钮 */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #4d6bfe;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #3b5bdb;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-link {
    color: #4d6bfe;
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
}

/* 错误提示框 */
.error-box {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
        align-items: center; /* 确保垂直居中 */
    }
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    .auth-title {
        font-size: 22px;
    }
}