/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px 35px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-size: 32px;
    color: white;
}

.brand-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.login-form {
    position: relative;
    z-index: 1;
}

.input-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #333;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #4ECDC4;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.checkbox-container input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
    background-color: #4ECDC4;
    border-color: #4ECDC4;
}

.checkbox-container input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e5eb;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 18px;
    color: #666;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    background: #DB4437;
}

.social-btn.github:hover {
    background: #333;
}

.social-btn.wechat:hover {
    background: #07C160;
}

.social-btn.google:hover i {
    color: white;
}

.social-btn.github:hover i {
    color: white;
}

.social-btn.wechat:hover i {
    color: white;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 20px;
    min-height: 20px;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: none;
}

.error-message.show {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer p {
    margin: 0;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .brand-header h1 {
        font-size: 24px;
    }
    
    .input-wrapper input {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px;
        font-size: 14px;
    }
}