/* 表单容器样式 */
body {
    padding: 0;
}

.form-container {
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 1;
    animation: formSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    position: relative;
}

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

/* 客服浮动按钮 */
.kefu-float {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(255, 59, 48, 0.4),
        0 2px 8px rgba(255, 59, 48, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: kefuPulse 2s ease-in-out infinite;
}

.kefu-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

.kefu-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 6px 20px rgba(255, 59, 48, 0.5),
        0 3px 10px rgba(255, 59, 48, 0.4);
    animation: none;
}

.kefu-float:active {
    transform: translateY(-2px) scale(1);
}

@keyframes kefuPulse {
    0%, 100% {
        box-shadow:
            0 4px 16px rgba(255, 59, 48, 0.4),
            0 2px 8px rgba(255, 59, 48, 0.3),
            0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    50% {
        box-shadow:
            0 4px 16px rgba(255, 59, 48, 0.4),
            0 2px 8px rgba(255, 59, 48, 0.3),
            0 0 0 12px rgba(255, 59, 48, 0);
    }
}

/* 找回密码链接 */
.forget-password {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.forget-password a {
    color: #FF3B30;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.forget-password a:hover {
    color: #FF6B60;
    text-decoration: underline;
}

h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 + p {
    text-align: center;
    color: #86868b;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-item {
    margin-bottom: 20px;
    position: relative;
    animation: itemFadeIn 0.5s ease-out backwards;
}

.form-item:nth-child(1) { animation-delay: 0.1s; }
.form-item:nth-child(2) { animation-delay: 0.15s; }
.form-item:nth-child(3) { animation-delay: 0.2s; }
.form-item:nth-child(4) { animation-delay: 0.25s; }

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

label {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f5f5f7;
    color: #1d1d1f;
}

input::placeholder {
    color: #86868b;
}

input:focus,
select:focus {
    outline: none;
    border-color: #FF3B30;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

/* 记住账号复选框 */
.remember-checkbox {
    display: flex;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

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

.remember-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #86868b;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    box-shadow:
        0 4px 12px rgba(255, 59, 48, 0.3),
        0 2px 4px rgba(255, 59, 48, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    animation: btnFadeIn 0.5s ease-out 0.3s backwards;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(255, 59, 48, 0.4),
        0 3px 6px rgba(255, 59, 48, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(255, 59, 48, 0.3),
        0 1px 2px rgba(255, 59, 48, 0.2);
}

/* 操作按钮区域 */
.action-buttons {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-register-link {
    width: 100%;
    padding: 15px;
    background: white;
    color: #FF3B30;
    border: 2px solid #FF3B30;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    animation: btnPulse 2s ease-in-out infinite;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.08),
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    50% {
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.08),
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 0 0 8px rgba(255, 59, 48, 0);
    }
}

.btn-register-link:hover {
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.06);
    animation: none;
}

.btn-register-link:active {
    transform: translateY(0);
    background: #ffebeb;
}

.back-home {
    color: #86868b;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.back-home:hover {
    color: #FF3B30;
}

.back-link {
    text-align: center;
    margin-top: 24px;
    animation: linkFadeIn 0.5s ease-out 0.4s backwards;
}

@keyframes linkFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.back-link a {
    color: #86868b;
    text-decoration: none;
    font-size: 14px;
    margin: 0 12px;
    transition: all 0.2s;
}

.back-link a:hover {
    color: #FF3B30;
}

/* 联系客服浮动按钮 */
.kefu-float {
    position: fixed;
    right: 20px;
    top: 5%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(255, 59, 48, 0.4),
        0 2px 8px rgba(255, 59, 48, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: kefuPulse 2s ease-in-out infinite;
}

.kefu-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

.kefu-float:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 6px 20px rgba(255, 59, 48, 0.5),
        0 3px 10px rgba(255, 59, 48, 0.3);
    animation: none;
}

@keyframes kefuPulse {
    0%, 100% {
        box-shadow:
            0 4px 16px rgba(255, 59, 48, 0.4),
            0 2px 8px rgba(255, 59, 48, 0.2),
            0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    50% {
        box-shadow:
            0 4px 16px rgba(255, 59, 48, 0.4),
            0 2px 8px rgba(255, 59, 48, 0.2),
            0 0 0 10px rgba(255, 59, 48, 0);
    }
}

/* 找回密码链接 */
.forget-password {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.forget-password a {
    color: #FF3B30;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.forget-password a:hover {
    color: #FF6B60;
    text-decoration: underline;
}
