/* 登录页样式 */

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #F0F2F5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-back {
    width: 44px;
    font-size: 24px;
    color: #333333;
    cursor: pointer;
    line-height: 44px;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
}

.header-right {
    width: 44px;
}

.login-form {
    padding: 40px 24px;
}

.form-logo {
    font-size: 28px;
    font-weight: 700;
    color: #1677FF;
    text-align: center;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 14px;
    color: #999999;
    text-align: center;
    margin-bottom: 40px;
}

/* 微信一键登录按钮 */
.wx-login-btn {
    width: 100%;
    height: 50px;
    background-color: #07C160;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.wx-login-btn:active {
    background-color: #06AD56;
}

.wx-svg-icon {
    flex-shrink: 0;
}

/* 手机号登录折叠区域 */
.phone-login-section {
    margin-top: 8px;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: #999999;
    white-space: nowrap;
}

.phone-login-form {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.input-prefix {
    width: 56px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 15px;
    color: #333333;
    background: #F5F7FA;
    border-right: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.input-field {
    flex: 1;
    height: 48px;
    border: none;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.input-field:focus {
    border: none;
}

.invite-group .input-field {
    padding-left: 16px;
}

.code-btn {
    width: 110px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 14px;
    color: #1677FF;
    background: transparent;
    border: none;
    border-left: 1px solid #E5E7EB;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.code-btn:disabled {
    color: #CCCCCC;
    cursor: not-allowed;
}

.phone-login-btn {
    width: 100%;
    height: 48px;
    background-color: #1677FF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.phone-login-btn:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
}

.phone-login-btn:active:not(:disabled) {
    background-color: #0E5FCC;
}

.phone-login-warn {
    margin-top: 12px;
    font-size: 12px;
    color: #FF6B35;
    text-align: center;
    line-height: 18px;
}

/* 邀请码区域 */
.invite-section {
    margin-top: 16px;
}

/* 提示 */
.login-tips {
    margin-top: 32px;
    text-align: center;
}

.login-tips p {
    font-size: 12px;
    color: #999999;
    line-height: 20px;
}
