/* 输入框样式优化 */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #ffd6e8;
    border-radius: 20px;
    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="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="password"]:hover {
    border-color: #ffb8d9;
    box-shadow: 0 2px 8px rgba(255, 133, 192, 0.15);
}

/* 输入框占位符样式 */
input[type="text"]::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;
}



/* 错误提示样式 */
#login-error {
    color: #f56c6c;
    font-size: 13px;
    text-align: center;
}

/* 超链接样式 */
a {
    color: #ff6bae;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 4px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6bae 0%, #ff9ed5 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

a:hover {
    color: #ff85c0;
    background-color: rgba(255, 214, 232, 0.15);
    transform: translateY(-2px);
}

a:hover::before {
    width: 80%;
}

a:active {
    transform: translateY(0);
}

/* 注册链接样式 - 较小尺寸 */
.register-link {
    font-size: 13px;
    padding: 3px 10px;
    font-weight: 400;
}

/* 整体样式 */
* {
    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, 133, 192, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(133, 227, 255, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

/* 动画定义 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* 容器布局 */
.container,
body > div {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* 移动端：居中显示 */
@media (max-width: 768px) {
    .container,
    body > div {
        align-items: center;
        padding: 20px;
    }
    
    #card {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: 30px;
    }
}

/* PC端：位于右侧四分之一位置 */
@media (min-width: 769px) {
    .container,
    body > div {
        align-items: flex-end;
        padding-left: 50%;
    }
    
    #card {
        min-width: 360px;
    }
}
