/* 登录/注册卡片 - 与项目商城中心风格一致 */
.ac-page {
    min-height: 100vh;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 40px;
    box-sizing: border-box;
}

.ac-wrap {
    width: 100%;
    max-width: 400px;
}

.ac-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ac-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 24px;
}

.ac-segment {
    display: flex;
    background: #eef1f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.ac-segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 14px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.ac-segment-btn.active {
    background: #fff;
    color: #007aff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ac-form {
    display: none;
}

.ac-form.active {
    display: block;
    animation: acFadeIn 0.35s ease;
}

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

.ac-field {
    margin-bottom: 16px;
}

.ac-input-wrap {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ac-input-wrap:focus-within {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.ac-input-icon {
    color: #9ca3af;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ac-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1d1d1f;
    background: transparent;
    height: 100%;
}

.ac-input::placeholder {
    color: #c4c9d0;
}

.ac-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    padding-left: 4px;
}

.ac-hint.valid { color: #10b981; }
.ac-hint.invalid { color: #ef4444; }

.ac-password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-strength-bar {
    flex: 1;
    height: 4px;
    background: #eef1f5;
    border-radius: 2px;
    overflow: hidden;
}

.ac-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ac-strength-fill.weak { width: 33%; background: #ef4444; }
.ac-strength-fill.medium { width: 66%; background: #f59e0b; }
.ac-strength-fill.strong { width: 100%; background: #10b981; }

.ac-strength-text {
    font-size: 11px;
    color: #9ca3af;
    min-width: 24px;
}

.ac-btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: #007aff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

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

.ac-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ac-skip {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

.ac-skip:hover {
    color: #6b7280;
}

.ac-match-hint {
    font-size: 11px;
    margin-top: 6px;
    padding-left: 4px;
}

.ac-match-hint.match { color: #10b981; }
.ac-match-hint.mismatch { color: #ef4444; }

/* 未登录时隐藏 app-container 默认背景影响 */
#auth-view.ac-page {
    position: fixed;
    inset: 0;
    z-index: 200;
    max-width: none;
    margin: 0;
}

.app-container:has(#auth-view.ac-page:not([style*="display: none"])) {
    background: #f4f6f8;
}
