/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* 登录和注册表单样式 */
.login-form, .register-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form:hover, .register-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #81C784;
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.1);
}

/* 按钮样式 */
input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

input[type="submit"]:active {
    transform: translateY(1px);
}

/* 错误和成功消息 */
.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.success {
    background: #efe;
    color: #393;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* 链接样式 */
p {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

a {
    color: #66BB6A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-form, .register-form {
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    input[type="submit"] {
        padding: 12px;
        font-size: 14px;
    }
}