.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(140deg, rgba(255, 235, 245, 0.9), rgba(255, 243, 249, 0.95));
    padding: 0 24px 32px;
}

.hidden {
    display: none !important;
}

/* Wall 页面导航栏适配样式 */
.navbar .auth-user {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(6px);
}

.navbar .user-avatar {
    width: 36px;
    height: 36px;
}

.navbar .user-meta {
    gap: 2px;
}

.navbar .user-name {
    font-size: 0.9rem;
    color: var(--white);
}

.navbar .user-plan {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.navbar .btn.ghost-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .btn.ghost-sm:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn {
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn.gradient {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn.gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.outline {
    border: 1px solid rgba(255, 107, 157, 0.35);
    background: rgba(255, 255, 255, 0.75);
    color: var(--primary-pink-dark);
}

.btn.outline:hover {
    background: rgba(255, 255, 255, 0.95);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.35);
}

.btn.ghost-sm {
    border-radius: var(--border-radius-sm);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-pink-dark);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.btn.ghost-sm:hover {
    background: rgba(255, 255, 255, 0.4);
}

.btn.full {
    width: 100%;
}

.btn.google {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    color: var(--text-primary);
    margin-top: 8px; /* 增加与上方分隔符的间距 */
}

.btn.google:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink-dark);
}

.google-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 1rem;
}

.auth-navbar {
    margin: 24px auto;
    border-radius: var(--border-radius-xl);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-xl);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--white);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.auth-brand h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.auth-actions {
    display: flex;
    gap: 12px;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(6px);
}

.user-avatar,
.user-avatar-lg {
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 48px;
    height: 48px;
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 700;
}

.user-plan {
    font-size: 0.85rem;
    opacity: 0.85;
}

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.76);
    padding: 36px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-pink-dark);
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.bullet-points {
    list-style: none;
    display: grid;
    gap: 12px;
}

.bullet-points li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.bullet-points li::before {
    content: "•";
    color: var(--primary-pink);
    position: absolute;
    left: 12px;
}

.hero-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 360px;
    border-radius: var(--border-radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 227, 239, 0.9));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.card-title {
    font-weight: 600;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nickname {
    font-weight: 700;
    font-size: 1.2rem;
}

.email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-pink-dark);
}

.footnote {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.auth-footer {
    margin-top: 48px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 22, 22, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.auth-dialog {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    padding: 24px 32px 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dialog-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.dialog-tabs {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.dialog-body {
    position: relative;
    /* 移除固定高度限制，让内容自然展开 */
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 12px; /* 减小表单元素间距，让内容更紧凑 */
    animation: fadeIn 0.25s ease;
    margin-bottom: 16px; /* 添加底部边距，避免与下方元素重叠 */
}

.auth-form.active {
    display: flex;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px; /* 增加字段间距 */
}

.form-field span {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-field input {
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    padding: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-actions .btn {
    width: 100%;
}

.hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
    min-height: 16px;
}

.hint.error {
    color: var(--error);
}

.hint.success {
    color: var(--success);
}

.form-status {
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-status.error {
    color: var(--error);
}

.form-status.success {
    color: var(--success);
}

.form-tip {
    text-align: center;
    font-size: 0.9rem;
    color: #4A5568; /* 直接使用颜色值，确保可见 */
    line-height: 1.6;
    margin-top: 8px;
}

.link-btn {
    border: none;
    background: transparent;
    color: var(--primary-pink);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-btn:hover {
    text-decoration: underline;
    color: var(--primary-pink-dark);
}

.dialog-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #4A5568; /* 直接使用颜色值，确保可见 */
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px; /* 增加与上方表单的间距 */
}

.dialog-divider::before,
.dialog-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E2E8F0; /* 直接使用颜色值 */
}

.dialog-note {
    text-align: center;
    font-size: 0.85rem;
    color: #4A5568; /* 直接使用颜色值，确保可见 */
    line-height: 1.5;
    margin-top: 8px;
}

/* 登录后快捷操作 */
.auth-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-actions-divider {
    height: 1px;
    background: var(--medium-gray);
    margin: 8px 0;
}

/* 弹窗滚动条美化 */
.auth-dialog::-webkit-scrollbar {
    width: 8px;
}

.auth-dialog::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.auth-dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.3);
    border-radius: 4px;
}

.auth-dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 157, 0.5);
}

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

@media (max-width: 768px) {
    .auth-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-actions {
        width: 100%;
        justify-content: space-between;
    }

    .auth-user {
        width: 100%;
        justify-content: space-between;
    }

    .hero-content {
        padding: 28px 24px;
    }

    .cta-group {
        flex-direction: column;
    }

    .auth-dialog {
        padding: 24px;
    }
}
