/* 认证页面样式（登录/注册） */

.auth-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    gap: 40px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-title {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #a0aec0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox span {
    font-size: 14px;
    color: #4a5568;
}

.checkbox a {
    color: #667eea;
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #718096;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 加载/错误/成功提示 */
.loading-message,
.error-message,
.success-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.loading-message {
    background: #edf2f7;
    color: #4a5568;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.success-message {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #68d391;
}

/* 会员权益展示（注册页） */
.membership-preview {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.membership-preview h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a202c;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.benefits-list li {
    padding: 10px 0;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.upgrade-hint {
    font-size: 13px;
    color: #718096;
    text-align: center;
}

.upgrade-hint a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .membership-preview {
        max-width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
