/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 整体背景样式 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* 登录容器样式 */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* 登录框样式 */
.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
}

/* Logo容器样式 */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 20px;
}

.input-field {
    position: relative;
    margin-bottom: 20px;
}

.input-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.input-field input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 选项行样式 */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

/* 登录按钮样式 */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #556cd6;
}

/* 分隔线样式 */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 社交登录按钮样式 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.google-btn {
    background: white;
    color: #333;
}

.google-btn:hover {
    background: #f5f5f5;
}

.facebook-btn {
    background: #4267B2;
    color: white;
    border: none;
}

.facebook-btn:hover {
    background: #365899;
}

/* 注册链接样式 */
.register-link {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #764ba2;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .login-box {
        padding: 30px 20px;
    }

    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        align-self: flex-end;
    }
}

@media (max-width: 350px) {
    .social-login {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeIn 0.5s ease forwards;
}

.input-field input:focus + i {
    color: #667eea;
}

.login-btn:active {
    transform: scale(0.98);
}

.social-btn:active {
    transform: scale(0.98);
}