/* 修改 style.css 文件 - 统一登录、注册、忘记密码页面样式 */

body {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcd9 50%, #f5f0e8 100%);
    background-size: 400% 400%;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out, gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    color: #333;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(199, 161, 122, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(199, 161, 122, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(199, 161, 122, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 25s ease-in-out infinite;
    filter: blur(20px);
}

/* 移除particles粒子效果，使界面更简洁 */
.particles {
    display: none;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(199, 161, 122, 0.15);
    width: 100%;
    max-width: 450px;
    margin: 0.5rem;
    box-sizing: border-box;
    animation: formSlideUp 0.8s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(199, 161, 122, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 标题样式 - 统一所有页面 */
.container h2 {
	margin-top: 0.5px;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: #c7a17a;
    border-radius: 2px;
}

/* 消息提示框样式 */
#message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

#message.success {
    background: rgba(72, 187, 120, 0.1);
    color: #28a745;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

#message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* 表单样式 */
form {
    border: none;
    padding: 0;
    box-shadow: none;
    animation: none;
}

form:hover {
    transform: none;
    box-shadow: none;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    font-size: 1rem;
    color: #333;
}

.input-group input:focus {
    outline: none;
    border-color: #c7a17a;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(199, 161, 122, 0.2);
}

.input-group input:hover {
    border-color: #c7a17a;
}

/* 按钮样式 - 统一所有页面 */
button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: #c7a17a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: #b89170;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 161, 122, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* 移除按钮原有的动画效果 */
button::after {
    display: none;
}

/* 链接容器样式 */
.link-container {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(199, 161, 122, 0.1);
}

.link-container p {
    margin: 0.8rem 0;
    color: #666;
    font-size: 0.9rem;
}

.link-container a {
    color: #c7a17a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
}

.link-container a:hover {
    color: #a88265;
}

.link-container a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #c7a17a;
    transition: width 0.3s ease;
}

.link-container a:hover::after {
    width: 100%;
}

/* 页脚样式 - 统一所有页面 */
.container::after {
    content: '';
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(199, 161, 122, 0.1);
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.container::after {
    content: "© 2025 午点黑咖  | 设计制作: 计应2151班钱世林";
    white-space: pre-wrap;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

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

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

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 90%;
    }
    
    .container h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .input-group input {
        padding: 0.8rem 1rem;
    }
    
    button[type="submit"] {
        padding: 0.9rem;
    }
}

/* 移除不需要的样式 */
header,
.form-group,
.form-animate,
.btn-animate,
.dw,
.user-actions,
.success-container {
    display: none;
}

/* 确保页脚正确显示 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(199, 161, 122, 0.9);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    z-index: 10;
    backdrop-filter: blur(5px);
}

footer p {
    margin: 0.3rem 0;
}

/* 确保容器有足够底部间距，避免被页脚遮挡 */
.container {
    margin-bottom: 1rem;
}