/* ==========================================
   登录 / 注册页专用样式（auth.css）
   沿用首页 AI 风格：蓝紫渐变、玻璃拟态、光球背景
   ========================================== */

/* ---------- 主体区域：垂直水平居中 ---------- */
.auth-main {
    position: relative;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    overflow: hidden;
}

/* ---------- 背景装饰光球 ---------- */
.auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #4F8BFF, transparent 70%);
    top: -120px;
    left: -100px;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #C63CFF, transparent 70%);
    bottom: -140px;
    right: -120px;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #7B5CFF, transparent 70%);
    top: 40%;
    left: 60%;
    opacity: 0.22;
}

/* ---------- 卡片 ---------- */
.auth-card {
    position: relative;
    width: 420px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 40px 38px 32px;
    box-shadow: 0 20px 60px rgba(79, 139, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.05);
    animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 头部标题 ---------- */
.auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-sub {
    font-size: 13px;
    color: #A0A6BC;
    margin: 0;
}

/* ---------- 表单字段 ---------- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1F36;
}

.field-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    display: flex;
    color: #A0A6BC;
    pointer-events: none;
    transition: color 0.25s ease;
}

.field-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1.5px solid #EEF1F7;
    border-radius: 12px;
    background: #F5F7FF;
    font-size: 14px;
    color: #1A1F36;
    outline: none;
    transition: all 0.25s ease;
}

.field-input::placeholder { color: #A0A6BC; }

.field-input:focus {
    border-color: #7B5CFF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12);
}

.field-box:focus-within .field-icon { color: #7B5CFF; }

/* ---------- 主按钮 ---------- */
.auth-btn {
    height: 46px;
    margin-top: 4px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    background-size: 150% 150%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(123, 92, 255, 0.35);
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(123, 92, 255, 0.45);
}

.auth-btn:active { transform: translateY(0); }

/* ---------- 底部链接区 ---------- */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #EEF1F7;
}

.auth-links-plain {
    font-size: 13px;
    color: #A0A6BC;
}

.auth-link {
    font-size: 13px;
    color: #6B7390;
    transition: color 0.25s ease;
}

.auth-link:hover { color: #7B5CFF; }

.auth-link-strong {
    color: #7B5CFF;
    font-weight: 600;
}

.auth-link-strong:hover { color: #C63CFF; }

.auth-links-sep {
    width: 1px;
    height: 12px;
    background: #E4E8F0;
}

/* ---------- 会员服务协议勾选 ---------- */
.field-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
}

/* 隐藏原生勾选框 */
.agree-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 自绘勾选框 */
.agree-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid #D5DAE8;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.agree-box svg { opacity: 0; }

.agree-check:checked + .agree-box {
    background: linear-gradient(135deg, #4F8BFF, #7B5CFF);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(123, 92, 255, 0.35);
}

.agree-check:checked + .agree-box svg { opacity: 1; }

.agree-check:hover + .agree-box,
.field-agree:hover .agree-box { border-color: #7B5CFF; }

.agree-text {
    font-size: 13px;
    color: #6B7390;
}

.agree-link {
    color: #7B5CFF;
    font-weight: 500;
    transition: color 0.25s ease;
}

.agree-link:hover { color: #C63CFF; }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
    .auth-card { padding: 30px 22px 24px; }
    .auth-title { font-size: 22px; }
}
