/* 登录页面容器 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 毛玻璃光斑效果 */
.glow-1,
.glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.4;
    animation: glow 10s ease infinite alternate;
}

.glow-1 {
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    top: -250px;
    left: -250px;
}

.glow-2 {
    background: linear-gradient(90deg, #4834d4, #686de0);
    bottom: -250px;
    right: -250px;
    animation-delay: -5s;
}

@keyframes glow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.2);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* 登录表单 */
.login-form {
    width: 400px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: formAppear 0.6s ease;
}

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

/* 标题样式 */
.login-container h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4834d4;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.2);
    background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder {
    color: #999;
}

/* 按钮样式 */
.form-group button {
    width: 100%;
    padding: 12px;
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.3);
}

.form-group button:hover {
    background: #3a29a8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 52, 212, 0.4);
}

.form-group button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(72, 52, 212, 0.3);
}

/* 错误消息样式 */
.error-message {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 页脚样式 */
footer {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

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

    .login-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .form-group button {
        padding: 10px;
        font-size: 14px;
    }

    .error-message {
        font-size: 13px;
        padding: 10px;
    }

    .glow-1,
    .glow-2 {
        width: 300px;
        height: 300px;
    }
}

/* 加载状态 */
.form-group button.loading {
    position: relative;
    color: transparent;
}

.form-group button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 密码可见性切换 */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #666;
}

.form-group {
    position: relative;
} 