/* 登录注册页面 */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: var(--gray);
    border-radius: 50px;
    padding: 5px;
}

.auth-tab {
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--primary);
}

.auth-form {
    width: 100%;
}

/* 表单相关样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.input-with-prefix .form-input {
    border-radius: 0 12px 12px 0;
    flex: 1;
}
.form-input {
    width: 100%;
    background: var(--gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    height: 54px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
    border-color: var(--primary-light); /* 聚焦时改变边框颜色增强视觉反馈 */
}

.auth-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

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

/* 新添加的 */
/* 验证码登录相关样式 */
.input-type-toggle {
    display: flex;
    background: var(--gray);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 15px;
}

.input-type {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.input-type.active {
    background: var(--primary);
    color: white;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-prefix {
    background: var(--gray);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0 15px;
    color: var(--text-secondary);
    height: 54px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.verification-code-container .form-input {
    flex: 1;
}

.verification-code-container {
    display: flex;
    gap: 12px;
}

.verification-code-btn {
    background: var(--gray);
    border: 1px solid var(--border-color);
    color: var(--text);
    padding: 0 15px;
    border-radius: 12px; /* 与输入框保持一致的圆角 */
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    min-width: 110px;
    height: 54px; /* 与输入框保持一致的高度 */
    font-weight: 500; /* 稍微加粗按钮文字 */
}

.verification-code-btn:hover:not(:disabled) {
    background: var(--dark);
    color: white;
}

.verification-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agreement-group {
    margin-top: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--gray);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    background-color: var(--dark);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-text {
    line-height: 1.5;
}

.agreement-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* 服务条款协议相关样式 */
.agreement-group .checkbox-container.highlight {
    animation: pulse 0.5s ease-in-out 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
