/* 输入框样式优化 */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #ffd6e8;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background-color: #fffbfe;
}

/* 输入框聚焦状态 */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #ff85c0;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(255, 133, 192, 0.25), 0 0 0 4px rgba(255, 133, 192, 0.1);
    transform: translateY(-2px);
}

/* 输入框悬停状态 */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover {
    border-color: #ffb8d9;
    box-shadow: 0 2px 8px rgba(255, 133, 192, 0.15);
}

/* 输入框占位符样式 */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #c0c4cc;
    font-size: 14px;
}

/* 标签样式 */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ff6bae;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 卡片样式 */
#card {
    background: linear-gradient(165deg, #ffffff 0%, #fff5f9 100%);
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(255, 107, 174, 0.2), 
                0 0 0 1px rgba(255, 214, 232, 0.5);
    min-width: 360px;
    position: relative;
    animation: cardFloat 3s ease-in-out infinite;
}

#card > div {
    margin-bottom: 22px;
}

#card > div:last-child {
    margin-bottom: 0;
}

/* 标题 */
#card > div:first-child {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6bae 0%, #ff9ed5 50%, #85e3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* 错误提示样式 */
#changer-error {
    color: #f56c6c;
    font-size: 13px;
    text-align: center;
    white-space: pre-line;
    word-wrap: break-word;
    line-height: 1.5;
}

/* 成功提示样式 */
#changer-success {
    color: #67c23a;
    font-size: 13px;
    text-align: center;
    white-space: pre-line;
    word-wrap: break-word;
    line-height: 1.5;
}

/* 整体样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'HarmonyOS Sans', sans-serif;
    background: linear-gradient(135deg, #ffd6e8 0%, #ffecf5 25%, #e0f4ff 75%, #d4f1ff 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 214, 232, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    z-index: 0;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 确保内容在背景之上 */
body > div {
    position: relative;
    z-index: 1;
}

/* 卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 发送验证码按钮样式 */
.send-code-btn {
    padding: 10px 20px;
    font-size: 13px;
    color: white;
    background: linear-gradient(135deg, #ff6bae 0%, #ff85c0 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 174, 0.3);
}

.send-code-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff85c0 0%, #ff9ed5 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 174, 0.4);
    transform: translateY(-2px);
}

.send-code-btn:disabled {
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    cursor: not-allowed;
    box-shadow: none;
}
